[Zope-dev] [BlueBream] Reg. updating catalog indexes in bluebream

Christian Klinger cklinger at novareto.de
Fri Jun 24 11:58:54 EDT 2011


Hi,

sorry i have no idea with AttributeErrors. I use grok which has a
different security policy.

Christian

> On Fri, 2011-06-24 at 19:13 +0530, Joshua Immanuel wrote:
>> If I override just the 'create' method I get the ForbiddenAttribute
>> for 'add' operation on self.context.add(object) in
>> zope.formlib.form.AddFormBase.add method.
>>
>> If I add the zcml config for that class to allow attribute like this
>>
>>                  ...
>>                  <allow attributes="add" />
>>                  ...
>>
>> I get AttributeError stating that the object has no attribute 'add'
>
> To fix this if I add a method named 'add' to that container like this
>
>          def add(self, object):
>                  self['some_unique_id'] = object
>
> I get a ForbiddenAttribute error for 'nextURL'.
>
> I guess there is a better way to do this. Please guide me.
>
>
>
>
> _______________________________________________
> Zope-Dev maillist  -  Zope-Dev at zope.org
> https://mail.zope.org/mailman/listinfo/zope-dev
> **  No cross posts or HTML encoding!  **
> (Related lists -
>   https://mail.zope.org/mailman/listinfo/zope-announce
>   https://mail.zope.org/mailman/listinfo/zope )




More information about the Zope-Dev mailing list