setting properties for multiple objects
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? thanks!
You can abuse ZopeFind for this. Click on the Find tab of a folder, click on "advanced..." In the expression field enter something like: setProperty('propertyname', 'value') This will call the above for all objects in the folder when you do the search. No results will appear, but it will have touched all of the objects. If you want to do it for only one type of object try: meta_type=='some type' and setProperty('propertyname', 'value') hth, -Casey On Wednesday 01 May 2002 12:59 pm, Russell Uman allegedly 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?
thanks!
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
participants (3)
-
Casey Duncan -
Jerome Alet -
Russell Uman