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

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

Zope-Dev maillist  -  [EMAIL PROTECTED]
**  No cross posts or HTML encoding!  **
(Related lists -
 http://lists.zope.org/mailman/listinfo/zope )

Reply via email to