[Zope] Doing something to all objects of a given Meta Type
Chris Withers
chrisw@nipltd.com
Tue, 13 Mar 2001 19:09:56 -0000
Hi,
I ended up doing this today and thought others might find it useful:
Say you want to do something to all objects of a given metatype, like update
them for example, you can do this in a Python Script (I used an External
Method, but they should be the same):
stuff = context.ZopeFind(self,obj_metatypes=['Squishdot Site'])
Stuff is now a list of tuples. Each tuple is of the form
(object_id,actual_object)
If this is useful to enough people, I'll stick it in a how-to
cheers,
Chris