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

Joshua Immanuel <[email protected]>
Newsgroups gmane.comp.web.zope.devel,gmane.comp.web.zope.bluebream
Organization HiPro IT Solutions Private Limited
Message-ID <1309156697.2453.25.camel@jimman>
Hello all,

On Fri, 2011-06-24 at 15:24 +0530, Joshua Immanuel wrote:
> In setitem function of zope.container.contained
> 'notify(ObjectAddedEvent)' happens, this causes the
> 'addIntIdSubscriber' adapter of zope.intid to be called. This in turn
> registers the 'Client' object and notifies for 'IntIdAddedEvent'. 
> 
> But I don't see the 'indexDocSubscriber' of zope.catalog.catalog which
> is the adapter for 'IIntIdAddedEvent' being called. Why is this so?

I found the source of the problem, zope.catalog package was not a part
of bluebream's default package set. I've manually added that package in
my buildout.cfg but I forgot to include that package in zcml. Including
that package in ZCML solved my problem.

As Thierry said, I didn't write a separate subscriber to update the
catalog indexes.

As Christian said, I overridded the 'create' method of zope.formlib's
AddForm instead of 'createAndAdd method. Moreover in my container's
interface file I added two methods namely 'add' and 'nextURL', and
implemented them. So, I removed the 'allow attributes' tag in zcml for
my container class altogether.

Now everything works out of the box.

Thanks guys for your invaluable inputs.

-- 
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)

iEYEABECAAYFAk4IJVMACgkQWw85XwuSFMIF3ACfTlgHRGrwtl4Sluyyls18V+tO
XakAoMZm6v5TR1FBKQm8sjzq6z8+BpDn
=WUD9
-----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.