[Zope-dev] Product doesn't work in zope 2.7 that was working in 2.6

Kapil Thangavelu hazmat at objectrealms.net
Sat Oct 16 23:27:38 EDT 2004


this has nothing to do with zope.

the problem is due to the severe monkey patching, use of eval, and other
bad practices in this product.

its monkey patched attributes into zcatalog and in doing so altered the
modules namespace, replacing the id function with a string.

which leads to the error, as zcatalog uses the builtin python function
id to determine the current transaction and manage subtransaction
thresholds for mass indexing.

-kapil


On Wed, 2004-10-13 at 20:54 +0530, Nagarjuna G. wrote:
> On Wed, Oct 13, 2004 at 12:56:50PM +0200, Andreas Jung wrote:
> > Best to contact the authors of the corresponding directly.
> 
> Well, the author (undersigned) doesn't know what to do.  The question
> was not from the users of the application but from the developers. 
> 
> This product works perfectly till 2.6.3, starting from 2.6.4 and
> upwards this problem appears.  Looking at the release notes did not
> indicate any changes to the API of catalogue product.
> 
> Nagarjuna
> 
> > --On Mittwoch, 13. Oktober 2004 16:32 Uhr +0530 MET 2004-2005 
> > <met0405 at hbcse.tifr.res.in> wrote:
> > 
> > >Can anybody please help me,
> > >Our product Named GNOWSYS is working perfectly in zope 2.6
> > >but when ported to zope 2.7 it does'nt get instantiated.
> > >I guess the way we are cataloging our Objects is not correct
> > >The Traceback of the error that occurs when we try to instantiate our
> > >product is as follows
> > >
> > >Exception Type          TypeError
> > >Exception Value         'str' object is not callable
> > >
> > >Traceback (innermost last):
> > >
> > >    * Module ZPublisher.Publish, line 101, in publish
> > >    * Module ZPublisher.mapply, line 88, in mapply
> > >    * Module ZPublisher.Publish, line 39, in call_object
> > >    * Module Products.GNOWSYS06.GNOWSYS, line 475, in addGNOWSYS
> > >    * Module Products.ZCatalog.CatalogAwareness, line 116, in index_object
> > >    * Module Products.ZCatalog.ZCatalog, line 537, in catalog_object
> > >
> > >TypeError: 'str' object is not callable
> > >
> > >is there a specific way for cataloging Objects in zope 2.7 please let us
> > >know _______________________________________________
> _______________________________________________
> Zope-Dev maillist  -  Zope-Dev at zope.org
> http://mail.zope.org/mailman/listinfo/zope-dev
> **  No cross posts or HTML encoding!  **
> (Related lists - 
>  http://mail.zope.org/mailman/listinfo/zope-announce
>  http://mail.zope.org/mailman/listinfo/zope )
> 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
Url : http://mail.zope.org/pipermail/zope-dev/attachments/20041016/53da5a97/attachment.bin


More information about the Zope-Dev mailing list