[Zope] How to pass arguments to ZSQL-Methods?
Jason Wong
jwong@digitalview.com.hk
Mon, 3 Apr 2000 14:47:39 +0800
I'm trying to pass some arguments to a ZSQL method using the following:
<dtml-in "_[qry_name](_.None, _, column='Model', table='Panels',
criteria='1=1')">
where qry_name *contains* the name of the ZSQL method that I want to use,
but it gives this error:
Error Type: Bad Request
Error Value: ['column', 'table', 'criteria']
which suggests that the stuff after "_[qry_name]" is not evaluated thus the
arguments are not passed onto the ZSQL method.
I then tried something like this:
<dtml-let column='Model'
table='Panels'
criteria="'1=1'">
<dtml-in "_[qry_name]">
: : :
: : :
</dtml-in>
</dtml-let>
This gives the same error as above.
Any help in getting either of the above to work is appreciated
tia
-
Jason Wong
Digital View Ltd
2201 Nanyang Plaza
57 Hung To Road
Kwun Tong
HONG KONG
Tel: +852-2861-3615
Fax: +852-2520-2987
www.digitalview.com