External method woes Zope 2.5.1 - no parameters being passed into external method - works fine with a refresh
I download a fresh Zope 2.5.1 for Windows. I create an external method "foo". def foo (self, REQUEST, RESPONSE): return "Hello World." I register it with id "foo". First invocation of /foo gives me: Error Type: TypeError Error Value: foo() takes exactly 3 arguments (0 given) I hit refresh and all is well! Occasionally but unpredictably, the problem re-occurs but disappears again for a while when I hit refresh. Browser is IE 6. Does this scenario ring any bells with anyone? regards, Sean
Hi Sean, Yes, this is a bug in Zope 2.5. It only happens the first time you call the external method. It will be fixed in the first release of 2.6. It's already fixed on the trunk. On Thu, 2002-06-06 at 11:55, Sean McGrath wrote:
I download a fresh Zope 2.5.1 for Windows.
I create an external method "foo".
def foo (self, REQUEST, RESPONSE): return "Hello World."
I register it with id "foo".
First invocation of /foo gives me:
Error Type: TypeError Error Value: foo() takes exactly 3 arguments (0 given)
I hit refresh and all is well!
Occasionally but unpredictably, the problem re-occurs but disappears again for a while when I hit refresh.
Browser is IE 6.
Does this scenario ring any bells with anyone?
regards, Sean
_______________________________________________ Zope maillist - Zope@zope.org http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
this is solved in CVS and will appear in 2.6. you may take the fixed ExternalMethod.py module from CVS and use that:: http://cvs.zope.org jens On Thursday, June 6, 2002, at 11:55 , Sean McGrath wrote:
I download a fresh Zope 2.5.1 for Windows.
I create an external method "foo".
def foo (self, REQUEST, RESPONSE): return "Hello World."
I register it with id "foo".
First invocation of /foo gives me:
Error Type: TypeError Error Value: foo() takes exactly 3 arguments (0 given)
I hit refresh and all is well!
Occasionally but unpredictably, the problem re-occurs but disappears again for a while when I hit refresh.
Browser is IE 6.
Does this scenario ring any bells with anyone?
regards, Sean
_______________________________________________ Zope maillist - Zope@zope.org http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
At 13:27 06/06/2002 -0400, Jens Vagelpohl wrote:
this is solved in CVS and will appear in 2.6. you may take the fixed ExternalMethod.py module from CVS and use that::
jens
Yup. That fixed it. Thanks. Note that I was seeing the error re-occur more than just once. I was not able to track down a consistently repeatable scenario though. It seems to have disappeared now anyway. Thanks again. Sean
On Thu, 2002-06-06 at 14:10, Sean McGrath wrote:
At 13:27 06/06/2002 -0400, Jens Vagelpohl wrote:
this is solved in CVS and will appear in 2.6. you may take the fixed ExternalMethod.py module from CVS and use that::
jens
Yup. That fixed it. Thanks.
Note that I was seeing the error re-occur more than just once. I was not able to track down a consistently repeatable scenario though. It seems to have disappeared now anyway. Thanks again.
Sean
Yes, the error would occur every time the Ext. method was loaded fresh from the database. That would make it tend to occur on methods that were more rarely executed. -Casey
participants (4)
-
Casey Duncan -
Chris McDonough -
Jens Vagelpohl -
Sean McGrath