[Zope] adding properties to all existing docs

Dieter Maurer dieter@handshake.de
Sun, 5 Nov 2000 18:49:18 +0100 (CET)


michael angelo ruberto writes:
 > i have a Zope containing 4700+ files and documents. i want to add new
 > properties to all of them, how can i do this programmatically? is it
 > possible to change the base classes? if so, how?
It is possible to change the base class but I would not do it
(as it affects all Zope objects and your change is likely
to disappear when you upgrade).

You can automate Zope either internally or externally.

  Internally (via a method (DTML or Python)) you would
  use ZopeFind to list all objects that need to be
  updated and then iterate (dtml-in) over the objects
  to update.

  Externally, you would use "ZPublisher.ZClient".


I would go for the internal solution.


Dieter