[prev in list] [next in list] [prev in thread] [next in thread]
List: zope3-users
Subject: [Zope3-Users] ForbiddenAttribute error when adding a container
From: baiju.m.mail () gmail ! com (baiju m)
Date: 2005-09-16 1:07:54
Message-ID: 3171e4820509152156327ccc40 () mail ! gmail ! com
[Download RAW message or body]
On 9/14/05, Maciej Pietrzak <mpietrzak@hell.org.pl> wrote:
>
> My guess is that you forgot to specify permissions for container interface.
>
> Add <require permission="zope.View"
> interface="zope.app.container.interfaces.IReadContainer"/> (or
> something like that) to your ZCML file (inside <condent/> element).
>
Thank you, that was the problem,
Actually I should have added (In my case):
<require
permission="zope.ManageContent"
interface=".interfaces.ICommentContainer"/>
<require
permission="zope.ManageContent"
interface=".interfaces.IComment"/>
i.e., if a container object can contain itself, I have to given permission for
both interfaces (IMyInterfce and IMyInterfceContainer)
With thanks,
Baiju M
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic