Does any one have an example of a ILoginPassword adapter?  I reviewed the code from Phillipp’s book, but it gives me errors about “list objects being unhashable” when I attempt to login.

 

For reference, here is the error I get with Phillip’s example:

 

Traceback (most recent call last):

  File "/home/djohnson/Zope-3.2.0/build/lib.linux-i686-2.4/zope/publisher/publish.py", line 132, in publish

    publication.beforeTraversal(request)

  File "/home/djohnson/Zope-3.2.0/build/lib.linux-i686-2.4/zope/app/publication/zopepublication.py", line 82, in beforeTraversal

    p = prin_reg.authenticate(request)

  File "/home/djohnson/Zope-3.2.0/build/lib.linux-i686-2.4/zope/app/security/principalregistry.py", line 42, in authenticate

    p = self.__principalsByLogin.get(login, None)

TypeError: list objects are unhashable

 

 

--

David Johnson

 

_______________________________________________
Zope3-users mailing list
Zope3-users@zope.org
http://mail.zope.org/mailman/listinfo/zope3-users

Reply via email to