[Zope] confused on permissions and roles
Roché Compaan
roche at upfrontsystems.co.za
Thu Jul 1 12:08:30 EDT 2004
John Hunter wrote:
> I also want to set the default permissions and roles for MyObject. If
> I define manage_afterAdd in MyObject, the function is not called,
> presumably because I am not instantiating MyObject from the manager
> interface. In MyFolder.manage_afterAdd, I do
>
> o = MyObject(oid)
> self._setObject(oid, o)
That doesn't make sense, because '_setObject' calls 'manage_afterAdd' on
the wrapped object so it should work - see OFS/ObjectManager.py.
--
Roché Compaan
Upfront Systems http://www.upfrontsystems.co.za
More information about the Zope
mailing list