[Zope] setting properties for multiple objects

Jerome Alet alet@librelogiciel.com
Wed, 1 May 2002 22:36:46 +0200


On Wed, May 01, 2002 at 09:59:29AM -0700, Russell Uman wrote:
> 
> is there any way with a vanilla zope 2.5.1 install to set a property for multiple objects at the same time? (say, all objects in a
> directory?)
> 
> is there a zope product that does something this?

<shameless>

you could download ZShell from :

	http://www.librelogiciel.com/software/

you can even test a restricted version online before downloading.

</shameless>

and use its find and setprop commands, try something like :

find . --type "DTML Document" --exec "setprop --name author --value homer {}"

this will recursively set the property "author" to value "homer" on
all your objects which meta type is "DTML Document" from the
current folder.

if the property doesn't already exist then use the addprop command before.

hth.

Jerome Alet