[Grok-dev] Integrating session logins into Kirbi

Luciano Ramalho luciano at ramalho.org
Thu Aug 16 23:47:57 EDT 2007


After I found the precious NudgeNudge example I started to integrate
users and logins into Kirbi.

Currently my problem is that whenever a navigate to the Kirbi index
page without having previously authenticated, I get a system error
with the traceback reproduced below.

I suppose the session machinery is not properly setup, but I believe I
did everything that NudgeNudge does to setup the PAU from Python code
(module app.py) [1]. Perhaps something is missing from the zcml, but I
am having a hard time checking this because NudgeNudge is quite old in
Grok time, so the layout of the project is very different, and so are
the .zcml files.

[1] http://svn.zope.org/Sandbox/luciano/kirbi/src/kirbi/app.py?rev=78892&view=log

Any ideas where I should look?

Regards,

Luciano



###################

2007-08-17T00:42:45 ERROR SiteError http://localhost:8080/k90
Traceback (most recent call last):
  File "/home/luciano/gsoc2007/Sandbox-luciano/kirbi/eggs/tmpA6QB_A/zope.publisher-3.5.0a1.dev_r78838-py2.4.egg/zope/publisher/publish.py",
line 130, in publish
  File "/home/luciano/gsoc2007/Sandbox-luciano/kirbi/eggs/tmpA6QB_A/zope.publisher-3.5.0a1.dev_r78838-py2.4.egg/zope/publisher/browser.py",
line 513, in traverse
  File "/home/luciano/gsoc2007/Sandbox-luciano/kirbi/eggs/tmpA6QB_A/zope.publisher-3.5.0a1.dev_r78838-py2.4.egg/zope/publisher/http.py",
line 453, in traverse
  File "/home/luciano/gsoc2007/Sandbox-luciano/kirbi/eggs/tmpA6QB_A/zope.publisher-3.5.0a1.dev_r78838-py2.4.egg/zope/publisher/base.py",
line 252, in traverse
  File "/home/luciano/gsoc2007/Sandbox-luciano/kirbi/eggs/tmpPCmvDq/zope.app.publication-3.4.0a1_2-py2.4.egg/zope/app/publication/zopepublication.py",
line 129, in callTraversalHooks
  File "/home/luciano/gsoc2007/Sandbox-luciano/kirbi/eggs/tmpPCmvDq/zope.app.publication-3.4.0a1_2-py2.4.egg/zope/app/publication/zopepublication.py",
line 116, in _maybePlacefullyAuthenticate
  File "/home/luciano/gsoc2007/Sandbox-luciano/kirbi/eggs/tmpZSX2qi/zope.app.authentication-3.4.0b1-py2.4.egg/zope/app/authentication/authentication.py",
line 72, in authenticate
  File "/home/luciano/gsoc2007/Sandbox-luciano/kirbi/eggs/tmpZSX2qi/zope.app.authentication-3.4.0b1-py2.4.egg/zope/app/authentication/session.py",
line 190, in extractCredentials
AttributeError: 'NoneType' object has no attribute 'get'


More information about the Grok-dev mailing list