[Zope] Simpler way to change ZCataloged ZClass property?
Florent Guillaume
fg@nuxeo.com
Sun, 24 Mar 2002 23:21:55 +0000 (UTC)
Milos Prudek <milos.prudek@tiscali.cz> wrote:
> for i in context.Catalog_Org(userid=666):
> rid=i.data_record_id_
> obj=context.Catalog_Org.getobject(rid)
> obj.propertysheets.data.manage_changeProperties(userid="777")
for brain in context.Catalog_Org(userid=666):
obj = brain.getObject()
obj.propertysheets.data.manage_changeProperties(userid="777")
> It works well. But is this the "right" way? It feels rather convoluted
> to me...
ZClasses are convoluted anyway...
Florent
--
Florent Guillaume, Nuxeo (Paris, France)
+33 1 40 33 79 10 http://nuxeo.com mailto:fg@nuxeo.com