25 Jul
2002
25 Jul
'02
6:48 p.m.
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