[Zope] Please help with DTML-in (newbie)
Alric Aneron
aluminum3458 at yahoo.com
Thu Dec 29 10:01:56 EST 2005
thanks you all!! This helped a lot!
Tino Wildenhain <tino at wildenhain.de> wrote: J Cameron Cooper schrieb:
> Alric Aneron wrote:
>
>> Hello, I am new to Zope and DTML.
>> I am trying to use a python script to call a Z SQL method. The python
>> script also has a list that
>> over. so my python script:
>> -----python script
>> words = ['one', 'two']
>> context.REQUEST.set('wordlist', wordlist)
>> rs = context.myzsqlmethod()
>> return rs[0,2]
>> -----z sql script:
>> SELECT * FROM table
>> WHERE
>>
>> column1 LIKE ('
' OR
>> column2 LIKE '
')
>> sequence-end> AND
>>
And dont use
in ZSQL Methods.
In your example, use
instead.
Even if you hardcode the wordlist, but even more if its coming
from request somewhere.
---------------------------------
Yahoo! Photos
Ring in the New Year with Photo Calendars. Add photos, events, holidays, whatever.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.zope.org/pipermail/zope/attachments/20051229/bd4e09e9/attachment.htm
More information about the Zope
mailing list