1 Jul
2004
1 Jul
'04
4:08 p.m.
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