Re: [Zope] Nested dtml tags

2006-06-20 Thread Andrew Hedges
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

[Zope] Efficiency of Script (Python) versus External Method

2006-06-15 Thread Andrew Hedges
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

[Zope] Document parameters as part of a URL

2006-06-07 Thread Andrew Hedges
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

Re: [Zope] Document parameters as part of a URL

2006-06-07 Thread Andrew Hedges
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

Re: [Zope] RESPONSE.redirect not working

2006-05-23 Thread Andrew Hedges
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

Re: [Zope] RESPONSE.redirect not working

2006-05-23 Thread Andrew Hedges
: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

[Zope] Can't import ExtZSQLFactory

2006-05-11 Thread Andrew Hedges
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 ?

Re: [Zope] Re: Can't import ExtZSQLFactory

2006-05-11 Thread Andrew Hedges
: %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

[Zope] Dynamic dictionary keys?

2006-02-27 Thread Andrew Hedges
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

Re: [Zope] Dynamic dictionary keys?

2006-02-27 Thread 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