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

Joshua Immanuel josh at hipro.co.in
Fri Jun 24 09:57:58 EDT 2011


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.

-- 
Joshua Immanuel
HiPro IT Solutions Private Limited
http://hipro.co.in
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: This is a digitally signed message part
Url : http://mail.zope.org/pipermail/zope-dev/attachments/20110624/94cf1d52/attachment.bin 


More information about the Zope-Dev mailing list