RE: [Zope] trouble with #with and DTML documents
sorry, did it again...forgot to give my version info. i'm using ZOPE 1.10.2 on win32. -----Original Message----- From: Wolf Logan [mailto:wolf@searchbutton.com] Sent: Monday, May 17, 1999 12:17 AM i'm having a strange problem (well, it's strange to me). i have a folder called "newFolder". it contains a folder called "subFolder". "subFolder" contains a DTML document called "DTMLDoc". "DTMLDoc" has a string property "foo" that reads "this is the message". the "index_html" of "newFolder" looks something like this: ----- <!--#with subFolder--> <!--#with DTMLDoc--> <!--#var foo--> <!--#/with--> <!--#/with--> ----- but this doesn't work -- it raises a key error. if the <!--#var foo--> line is replaced with <!--#var title_or_id-->, it returns "subFolder". apparently, the second "with" (#with DTMLDoc) isn't working properly. now, when the key error is raised, it's raised from within DT_With.py, so i know the right code is being called. i just don't understand why i don't have access to the DTMLDoc's namespace from there. any pointers? _______________________________________________ Zope maillist - Zope@zope.org http://www.zope.org/mailman/listinfo/zope (For developer-specific issues, use the companion list, zope-dev@zope.org - http://www.zope.org/mailman/listinfo/zope-dev )
participants (1)
-
Wolf Logan