29 Apr
2000
29 Apr
'00
3:21 a.m.
----- Original Message ----- From: George Runyan <grunyan@emerging.com>
maybe its really late and I'm tired... but I'm sitting here trying to walk the entiree tree from a dtml method and its just not working... I would rather do this from pythonmethods, and I've been reading the manage_exportObject method to see how it works, but its kinda hairy... ? how do you do recursion in ZOPE?
Something like this should work (PythonMethod named "tree_walk"): <params>self, data</params> for sub in self.objectValues(): if sub.meta_type == 'Folder': sub.tree_walk(data) # Do stuff with sub Cheers, Evan @ digicool & 4-am