* Dieter Maurer (dieter@handshake.de) [010131 15:37]:
Ralf Kraemer writes:
i would like to put some dtml code into my database and let it be parsed by zope by a query.
it works fine with html, but with dtml it fails
actual i have some
<dtml-in get_item(item_id)> <dtml-var item> </dtml-in>
can anybody help me ??? It will not work in DTML, but in an external Python Method:
you take your DTML string (stored in the database) and create a document template object from it. You then render (call) this object.
For how, you do all that, you should look at the "DocumentTemplate" package in your Zope distribution. Most relevant "DT_String.py" and "DT_HTML.py".
Can't you do: <dtml-in expr="get_item(item_id)"> .... ?? Ciao! -- "Clothes make the man. Naked people have little or no influence on society." -- Mark Twain The Doctor What: Not that 'who' guy http://docwhat.gerf.org/ docwhat@gerf.org KF6VNC