def traverseTree(self): ''' Traverse the tree and do something. '''
was_ghost = self._p_changed is None
for ob in self.objectValues(): traverseTree(ob)
# XXX Do something with self here : self.doSomething()
if was_ghost:self._p_deactivate()
Hmmm, does _p_deactivate() clear the contents of the object's _v_ variables?
cheers,
Chris
_______________________________________________
Zope-Dev maillist - [EMAIL PROTECTED]
http://mail.zope.org/mailman/listinfo/zope-dev
** No cross posts or HTML encoding! **
(Related lists - http://mail.zope.org/mailman/listinfo/zope-announce
http://mail.zope.org/mailman/listinfo/zope )