Need to pass dtml-in parameter

A

Andre Dourado

I´m a newbie in Zope and I have a little problem.

I'm trying to use a dtml-in tag to call a ZSQL, but the name of my
ZSQL is stored in a sql table.

I've tried things like:

<dtml-in expr=<dtml-var my_query>> where my_query is the column name
of my sql table where the ZSQL name is stored.

Thanks for any help.
 
L

Lee Harr

I´m a newbie in Zope and I have a little problem.

I'm trying to use a dtml-in tag to call a ZSQL, but the name of my
ZSQL is stored in a sql table.

I've tried things like:

<dtml-in expr=<dtml-var my_query>> where my_query is the column name
of my sql table where the ZSQL name is stored.

You might try something along the lines of: (completely untested)

<dtml-let zsql_name="my_query()[0]">
<dtml-in "_[zsql_name]()">

</dtml-in>
</dtml-let>


but I think you will be better off getting your result from a python
script that can find the correct query and return it. You should
also think about using ZPT instead of dtml.

And you should definitely be asking this question on the zope
mailing list: (e-mail address removed)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,777
Messages
2,569,604
Members
45,228
Latest member
MikeMichal

Latest Threads

Top