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

Attachment: signature.asc
Description: This is a digitally signed message part

Zope-Dev maillist  -  Zope-Dev@zope.org
**  No cross posts or HTML encoding!  **
(Related lists - 
 https://mail.zope.org/mailman/listinfo/zope )

Reply via email to