[Zope3-Users] __setitem__ works, __delitem__ fails on custom site
FB
fbo2 at gmx.net
Mon Jan 22 01:20:58 EST 2007
Hi,
On Sun, Jan 21, 2007 at 07:06:36PM -0500, Roy Mathew wrote:
> Hi Folks,
>
> I am trying to create a custom Site object, using the below
> declarations; all goes well when addding an object O1 to the QSite,
> but when trying to delete object O1, I get:
>
> ForbiddenAttribute: ('__delitem__', <...QSite object at 0xa61dcd6c>)
[snip]
> <require permission="zope.ManageContent"
> set_schema="zope.app.container.interfaces.IWriteContainer" />
IWriteContainer is not a schema but an api. Use 'interface' instead of
'set_schema'.
Regards,
Frank
More information about the Zope3-users
mailing list