[Zope] Folderish object -API
Chris Withers
chrisw@nipltd.com
Tue, 07 Nov 2000 10:30:35 +0000
Petr Knapek wrote:
> def manage_addISNGFolder(self, cz_id, title='', key_words=[], header='', footer='',
> createPublic=0,
> createUserF=0,
> REQUEST=None):
> """Add a new 'ISNG Folder' object with id *id*."""
...
> ob=ISNGFolder()
...
> ob.manage_role('Content', ['Access contents information', 'View'])
Your problem is here and I'm betting it's 'cos #ob' isn't an acquisition
wrapper...
Try replacing the above line with:
ob.__of__(self).manage_role('Content', ['Access contents
information', 'View'])
cheers,
Chris