This is untested, but it's a pretty familiar idiom to me at the moment.
dtml-in selectmoduleinfoMethod prefix=dbmodlevel
dtml-call REQUEST.set('dbmodlevel', dbmodlevel_item)
/dtml-in
select name=MODLEVEL
dtml-in range(1, 8) prefix=modlevel
optiondtml-if expr=modlevel_item == dbmodlevel
Is there a difference in the efficiency of a function as a Script
(Python) Zope object versus an External Method? The use case is
that I need to run a fairly simple function (an implementation of the
Levenshtein distance algorithm) over a result set in the range of
30-40k records. Are
that members is a
DTML Method and not a Python script or ZSQL Method.
Thanks in advance for any insights!
-Andrew
-
Andrew Hedges, [EMAIL PROTECTED]
http://clearwired.com/
___
Zope maillist - Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
Peter,
That definitely looks promising. I've tried a couple of ways, but I
can't make it so this applies to all DTML Methods. Any ideas?
-Andrew
On Jun 7, 2006, at 6/7/2006 4:10 PMMDT, Peter Bengtsson wrote:
I much prefer to use __before_publishing_traverse__.
Eg.
class
Jo,
THANK YOU! This worked (with a slight change to the dtml-return):
dtml-unless pyCheckSession
dtml-return login_html
/dtml-unless
I *thought* I had seen redirect work as I had had it before, but
maybe I misunderstood what was happening. In any case, many thanks!
-Andrew
On
:02 PMMDT, Jo Meder wrote:
Am 24.05.2006, 00:57 Uhr
schriebte Andrew Hedges [EMAIL PROTECTED]:
dtml-unless pyCheckSession
dtml-return login_html
/dtml-unless
Are you sure you're seeing the redirect there and not just the login
page rendered for the address you were originally
Here's my traceback:
2006-05-11 16:08:46 ERROR Zope Couldn't install MVP
Traceback (most recent call last):
File /usr/local/zope/lib/python/OFS/Application.py, line 762, in
install_product
global_dict, global_dict, silly)
File /usr/local/zopedev/Products/MVP/__init__.py, line 18, in ?
:
%define INSTANCE /usr/local/zopedev
%define ZOPE /usr/local/zopedev
products /usr/local/zopedev/Products
TIA for any help,
-Andrew
On May 11, 2006, at 5/11/2006 5:56 PMMDT, Tres Seaver wrote:
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Andrew Hedges wrote:
Here's my traceback:
2006-05-11
eventsDict={}
dtml-let calstart=somestring
dtml-call REQUEST.set(eventsDict[calstart]=id)
/dtml-let
/dtml-let
This kind of construct *seems* perfectly reasonable, yet it doesn't
work. Any suggestions? Other possible ways of doing the same thing?
Thanks!
-Andrew
-
Andrew Hedges
a feeling I'm building a hash table for something I may
be able to access directly, but it's working, so I don't want to take
up more space in peoples' inboxes. Thanks again for the quick help!
-Andrew
On Feb 27, 2006, at 10:15 AM, Andreas Pakulat wrote:
On 27.02.06 09:56:49, Andrew Hedges
10 matches
Mail list logo