[Zope-dev] LoginManager error

Bertrand CROQ bcroq@virtual-net.fr
Wed, 7 Feb 2001 18:05:24 +0100


Hi,
  I am using Zope 2.3.0 with ZPatterns 0.4.3b2 and LoginManager 0.8.8b1. =
When=20
I try to use LoginManager (following the tutorial about LoginManager and=20
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 2=
22,=20
in publish_module
  File /usr/local/Zope-2.3.0-src/lib/python/ZPublisher/Publish.py, line 1=
87,=20
in publish
  File /usr/local/Zope-2.3.0-src/lib/python/Zope/__init__.py, line 221, i=
n=20
zpublisher_exception_hook
    (Object: Traversable)
  File /usr/local/Zope-2.3.0-src/lib/python/ZPublisher/Publish.py, line 1=
62,=20
in publish
  File /usr/local/Zope-2.3.0-src/lib/python/ZPublisher/BaseRequest.py, li=
ne=20
444, in traverse
  File /usr/local/zope/lib/python/Products/LoginManager/LoginManager.py, =
line=20
237, in validate
    (Object: ProviderContainer)
  File /usr/local/zope/lib/python/Products/LoginManager/LoginMethods.py, =
line=20
149, in findLogin
    (Object: PlugInBase)
  File /usr/local/Zope-2.3.0-src/lib/python/Shared/DC/Scripts/Bindings.py=
,=20
line 324, in __call__
    (Object: authenticate)
  File /usr/local/Zope-2.3.0-src/lib/python/Shared/DC/Scripts/Bindings.py=
,=20
line 353, in _bindAndExec
    (Object: authenticate)
  File=20
/usr/local/Zope-2.3.0-src/lib/python/Products/PythonScripts/PythonScript.=
py,=20
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 do=
n't=20
know if this is an install error, a development error (I mean, did I do=20
something wrong when using LoginManager, surely!!), or an error in=20
LoginManager; is this a known error?

The error seams to be in LoginMethods.py:149 as it calls user.authenticat=
e()=20
with two parameters where LoginUser's authenticate() takes 3=20
parameters; but, once again, I might be missing something as I am a=20
beginner...

Thanks
--=20
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