[Zope] Zope Product to globally add/remove a property

Gary Duke Speer gspeer at cortech.org
Sat Jun 12 12:36:50 EDT 2004


Does one of the many Zope products have a feature to walk a tree of
folderish objects and globally add or remove a named property.

The delete would simply take the property name as an arguement and execute
on all folders having the property from the point of execution down.
The add would take the Property name, the class, and the default/starting
value and it it doesn't already exist, adds it.

In the alternative, for a python newbie, is this something that can be
created easily?  Is there a trick for error suppression needed to manage
the cases of deleting when the property doesn't exist or adding when
already added during the recursion through subfolders.  (or testing first)

Thank you for any suggestions,
Gary




More information about the Zope mailing list