[Zope] Newbie: namespace in DTML-methods
Dieter Maurer
dieter@handshake.de
Thu, 25 Jul 2002 20:48:28 +0200
Thomas Weholt writes:
> This is the contents of a DTML-method, defined in the root-folder :
>
> <dtml-with expr="PARENTS[1-]">
This should be: "PARENTS[-1]", right?
I am a bit picky when I see problem reports that seem not be prepared
with great care...
> <dtml-in expr="SQL.sqlmViewComments(com_object=com_object,
> com_object_id=com_object_id)">
> <!-- process the result-set -->
> </dtml-in>
> </dtml-with>
>
> When called in a DTML-document in a sub-folder below the root-folder I get
> an error saying "global name 'PARENTS' not defined".
Almost surely, you forget the essential two positional parameters for
calls of DTML objects...
Read "Calling DTML objects" in
<http://www.dieter.handshake.de/pyprojects/zope/book/chap3.html>
Dieter