[Zope] NameError when rendering a zsql-method in a dtml-method in a dtml-method
Andreas Hölzl
hoelzla@uni-freiburg.de
Wed, 19 Jun 2001 23:18:00 +0200
-------------------
> You need to tell us the name of the zsql method, and show how you
asked for
> it to be rendered.
>
> Surely you didn't really ask for "name_of_zsql_method" literally,
did you?
>
> Tom P
>
ok, this is it in detail:
first of all i try to render a dtml-method "base_method" located in
"/root/subfolder/subsubfolder" via URL.
"base_method" is a layout template.
inside "base_method" i call the dtml-method "db_query" located in
"/root/subfolder/db_stuff" (!) for the output of a more complex
db-query :
...
<dtml-with db_stuff>
<dtml-var "db_query(...)">
</dtml-with>
...
Zope finds "db_query" in "db_stuff" and renders it, but is not able to
call zsql-methods also located in the same directory
"/root/subfolder/db_stuff".
Inside "db_query" i try:
...
<dtml-in "specific_zsql_method(...)">
...
</dtml-in>
...
i tried to fix it with "dtml-with", but
when i put "<dtml-with db_stuff>" around the in-tag, Zope can't find
"db_stuff".
so i'm quite a bit confused.
thanks for an answer.
Andreas Hölzl