trouble with #with and DTML documents
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?
participants (1)
-
Wolf Logan