[Zope] Can't get this SQL-based login to work...

Robin Smidsrød robin@etools.no
Tue, 5 Feb 2002 16:29:38 +0100


I've tried to use the guide on
http://aspn.activestate.com/ASPN/Mail/Message/zope-List/445507 to make an
SQL-capable acl_users using LoginManager.

Everything looks ok, but when I try to log in as a user in the database, I
get the following error:

Error Type: KeyError
Error Value: _v_parent

Traceback (innermost last):
  File /usr/lib/python2.1/site-packages/ZPublisher/Publish.py, line 162, in
publish
  File /usr/lib/python2.1/site-packages/ZPublisher/BaseRequest.py, line 450,
in traverse
  File /var/zope/Products/LoginManager/LoginManager.py, line 237, in
validate
    (Object: acl_users)
  File /var/zope/Products/LoginManager/LoginMethods.py, line 147, in
findLogin
    (Object: Basic Auth Login)
  File /var/zope/Products/LoginManager/LoginManager.py, line 194, in getItem
    (Object: acl_users)
  File /var/zope/Products/ZPatterns/Rack.py, line 59, in getItem
    (Object: UserSource)
  File /var/zope/Products/LoginManager/UserSources.py, line 517, in
retrieveItem
    (Object: UserSource)
  File /var/zope/Products/ZPatterns/Rack.py, line 235, in _RawItem
    (Object: UserSource)
  File /usr/share/zope/lib/python/OFS/CopySupport.py, line 480, in _setId
    (Object: )
  File /var/zope/Products/ZPatterns/DataSkins.py, line 254, in __set_attr__
    (Object: )
  File /var/zope/Products/ZPatterns/DataSkins.py, line 240, in
_canonicalForm
    (Object: )
KeyError: _v_parent

Using:
LoginManager-0-8-8b1
ZPatterns-0-4-3p2
Zope Version  (Zope 2.4.3 (source release, python 2.1, linux2), python
2.1.1, linux2)
Python Version  2.1.1 (#1, Aug 13 2001, 19:37:40) [GCC 2.96 20000731 (Red
Hat Linux 7.1 2.96-96)]

I've been trying to find good documentation about this for several days now.
A HOWTO would be greatly appreciated!!!

-- Robin