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

2004-10-16 Thread Kapil Thangavelu
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 )
 


signature.asc
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 )


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

2004-10-14 Thread Stefan H. Holek
Note that 2.6.4 contains massive changes to the security 
implementation. I'd imagine the product you use has not been updated 
accordingly.

Stefan
On 13.10.2004, at 17:24, Nagarjuna G. wrote:
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.
--
The time has come to start talking about whether the emperor is as well
dressed as we are supposed to think he is.   /Pete McBreen/
___
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 )


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

2004-10-13 Thread MET 2004-2005
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 )


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

2004-10-13 Thread Andreas Jung
Best to contact the authors of the corresponding directly.
-aj
--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 )


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


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

2004-10-13 Thread Nagarjuna G.
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 )


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

2004-10-13 Thread Andreas Jung

--On Mittwoch, 13. Oktober 2004 20:54 Uhr +0530 Nagarjuna G. 
[EMAIL PROTECTED] 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

* 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

I can not identify the corresponding code in ZCatalog.py. Which version are 
you using?

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


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

2004-10-13 Thread Dieter Maurer
MET 2004-2005 wrote at 2004-10-13 16:32 +0530:
 ...
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
 
* Module Products.ZCatalog.ZCatalog, line 537, in catalog_object

TypeError: 'str' object is not callable

Please check which code you find around line 537
of .../Products/ZCatalog/ZCatalog.py.

In line 537, a string is used as a method.
We need to know where this string comes from.

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