[Zope-dev] _p_deactivate() and _v_ variables?

Chris Withers chrisw at nipltd.com
Thu Sep 25 06:51:07 EDT 2003


> 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




More information about the Zope-Dev mailing list