Re: [BlueBream] Reg. updating catalog indexes in bluebream

Christian Klinger <[email protected]>
Newsgroups gmane.comp.web.zope.devel,gmane.comp.web.zope.bluebream
Message-ID <[email protected]>
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  -  [email protected]
> 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 )


_______________________________________________
Zope-Dev maillist  -  [email protected]
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 )
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.