[Zope] Can I have 'pointers' to ZSQL Methods?
Marcus Collins
mcollins@sunesi.com
Thu, 30 Mar 2000 11:56:27 +0200
Try
<dtml-in "_[qry_name]">
...
</dtml-in>
where qry_name is a string holding the name of your ZSQL method.
> <dtml-in "<dtml-var qry_name>"
> <dtml-in "_['<dtml-var qry_name>']">
Note that you cannot use <dtml-xxx>'s inside a python expression (that's why
you got the traceback), but that variables in the REQUEST namespace are
automatically available inside your python expression.
hth,
-- Marcus
> I need to do something like this:
>
> <dtml-in "<dtml-var qry_name>" or
>
> <dtml-in "_['<dtml-var qry_name>']">
>
> where qry_name contains the name of the ZSQL Method that I
> want to use.
>
> However neither of the above works, the latter gives a
> traceback error,
> which I daren't reproduce here because of it's length :)
>
> The above is used inside a DTML Method which is called by
> passing parameters
> to it from a DTML Document. qry_name is one of the parameters
> being passed.
>
> Any help appreciated.
>
> thanks
> -
> 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
>
>
> _______________________________________________
> Zope maillist - Zope@zope.org
> http://lists.zope.org/mailman/listinfo/zope
> ** No cross posts or HTML encoding! **
> (Related lists -
> http://lists.zope.org/mailman/listinfo/zope-announce
> http://lists.zope.org/mailman/listinfo/zope-dev )
>