-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 The reason this wont work is that I need to iterate over the objects in "someFolder" (some code is missing here... thats why it's not evident). Then while im iterating over that folder's DTMLMethods, one of those methods need's to descend into the "someOtherFolder" folder. Just try my heirarchy out (it's below). It should make more sense then. Basically, I need "someOtherFolder" to be aquired by other folders than just the "someFolder" folder... That is why it is not a child of "someFolder". Any more ideas?
Somebody else than me can explain much better the reason for it, but try:
<dtml-with "someOtherFolder">
and your code should work.
hth, Thomas
- -----Original Message----- From: Thomas Weiner [mailto:weiner@tu-harburg.de] Sent: Saturday, February 26, 2000 5:18 PM To: kevn@vrac.iastate.edu Cc: zope@zope.org Subject: Re: [Zope] dtml-in appears to mess up the "space" Kevin Meinert schrieb: [...]
========================= But this code doesn't: ========================= <dtml-with somefolder> <dtml-in "objectValues(['DTML Method'])"> <dtml-with someOtherFolder> <dtml-var somemethod> </dtml-with> </dtml-in> </dtml-with>
========================= I get this error from my Zope server, on the one that doesn't work. ========================= Error Type: AttributeError Error Value: __call__
-----BEGIN PGP SIGNATURE----- Version: PGPfreeware 6.5.2 for non-commercial use <http://www.pgp.com> iQA/AwUBOLhhgjlszdAdzf4MEQL2EQCg5hnJr69IGJ9UeQ6pPxBT5EmQxHwAn3AS j5KdXOnLZrR12tNnCLRekyUl =umhQ -----END PGP SIGNATURE-----