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

Joshua Immanuel <[email protected]>
Newsgroups gmane.comp.web.zope.devel,gmane.comp.web.zope.bluebream
Organization HiPro IT Solutions Private Limited
Message-ID <1308923878.2656.36.camel@jimman>
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

_______________________________________________
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 )
signature.asc (application/pgp-signature, 198 B)
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (GNU/Linux)

iEYEABECAAYFAk4El+YACgkQWw85XwuSFMIxOACgxYnMTDUtqSfvzBel83tVnV1l
gbwAnjdxP83AbQA8O5hhrBtOjKxS9cDh
=FBWN
-----END PGP SIGNATURE-----
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.