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 > > <[EMAIL PROTECTED]> 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 - [EMAIL PROTECTED] > 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 ) >
Description: This is a digitally signed message part
_______________________________________________ Zope-Dev maillist - [EMAIL PROTECTED] 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 )