[Zope-dev] __call__() takes exactly 1 argument (4 given) !!!!!!!!!!!

alan milligan alan_milligan at hotmail.com
Mon Aug 18 10:41:40 EDT 2003


Guys,

I am getting this message out of HelpSys/STXTopic and 
Products/CMFCore/PortalContent using Zope2.6.2b2 and CMF1.3.1.

It's happening out of ZPublisher/Publish calling the default method to 
publish the object.

For some reason, the delivered code works fine in development (Linux 2.4.21, 
Python2.1.3, Zope 2.6.2b2, CMF1.3.1) but not in production, which strangely 
has the same software (different hardware though).

I've patched both the offending __call__ method's function signatures to 
include REQUEST, *args, and **kw - which I believe is the standard signature 
for stuff called from ZPublisher.

I am however quite baffled why (i) this has not been done for these already; 
(ii) why indeed my development environment works; (iii) why this issue 
hasn't bothered anyone else!!!!

Am I missing something?????  If not, does anyone want me to post the 
patches???

Cheers, Alan

_________________________________________________________________
Surf the net and talk on the phone with Xtra Jetstream @  
http://www.xtra.co.nz/products/0,,5803,00.html !




More information about the Zope-Dev mailing list