Hi, I am using Zope 2.3.0 with ZPatterns 0.4.3b2 and LoginManager 0.8.8b1. When I try to use LoginManager (following the tutorial about LoginManager and SQL), here is the error I get in the browser: Type: TypeError Value: not enough arguments; expected 3, got 2 Traceback (innermost last): File /usr/local/Zope-2.3.0-src/lib/python/ZPublisher/Publish.py, line 222, in publish_module File /usr/local/Zope-2.3.0-src/lib/python/ZPublisher/Publish.py, line 187, in publish File /usr/local/Zope-2.3.0-src/lib/python/Zope/__init__.py, line 221, in zpublisher_exception_hook (Object: Traversable) File /usr/local/Zope-2.3.0-src/lib/python/ZPublisher/Publish.py, line 162, in publish File /usr/local/Zope-2.3.0-src/lib/python/ZPublisher/BaseRequest.py, line 444, in traverse File /usr/local/zope/lib/python/Products/LoginManager/LoginManager.py, line 237, in validate (Object: ProviderContainer) File /usr/local/zope/lib/python/Products/LoginManager/LoginMethods.py, line 149, in findLogin (Object: PlugInBase) File /usr/local/Zope-2.3.0-src/lib/python/Shared/DC/Scripts/Bindings.py, line 324, in __call__ (Object: authenticate) File /usr/local/Zope-2.3.0-src/lib/python/Shared/DC/Scripts/Bindings.py, line 353, in _bindAndExec (Object: authenticate) File /usr/local/Zope-2.3.0-src/lib/python/Products/PythonScripts/PythonScript.py, line 330, in _exec (Object: authenticate) (Info: ... cut ...) TypeError: (see above) I don't know a lot about Zope/Python (I work on it since 2 weeks) so I don't know if this is an install error, a development error (I mean, did I do something wrong when using LoginManager, surely!!), or an error in LoginManager; is this a known error? The error seams to be in LoginMethods.py:149 as it calls user.authenticate() with two parameters where LoginUser's authenticate() takes 3 parameters; but, once again, I might be missing something as I am a beginner... Thanks -- Bertrand Croq - VIRTUAL NET (http://www.virtual-net.fr) 80, avenue des Buttes de Coesmes - 35700 RENNES tel: +33 2 23 21 06 30 - fax: +33 2 99 38 16 85
Hi, Bertrand CROQ schrieb:
Hi, I am using Zope 2.3.0 with ZPatterns 0.4.3b2 and LoginManager 0.8.8b1. When I try to use LoginManager (following the tutorial about LoginManager and SQL), here is the error I get in the browser:
...
The error seams to be in LoginMethods.py:149 as it calls user.authenticate() with two parameters where LoginUser's authenticate() takes 3 parameters; but, once again, I might be missing something as I am a beginner...
As far as i know LoginManager 0.8.8b1 is not compatible with Zope 2.3.0. There are also some Problems with ZPatterns and Zope 2.3.0 (see the recent thread "ZPatterns for Zope 2.3 convenience release") Ciao, Jochen -- -------------------------------------------------- Jochen Knuth WebMaster http://www.ipro.de IPRO GmbH Phone ++49-7152-93330 Steinbeisstr. 6 Fax ++49-7152-933340 71229 Leonberg EMail: J.Knuth@ipro.de
participants (2)
-
Bertrand CROQ -
Jochen Knuth