[Grok-dev] Integrating session logins into Kirbi

Darryl Cousins darryl at darrylcousins.net.nz
Fri Aug 17 00:44:05 EDT 2007


Hi,

On Fri, 2007-08-17 at 00:47 -0300, Luciano Ramalho wrote:
> 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?

Quick answer but not necessarily correct. Do you have

<include package="zope.app.session" />

in your configuration. This will register adapter to ISession which is
what you are missing I believe.


Regards,
Darryl

> 
> 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'
> _______________________________________________
> Grok-dev mailing list
> Grok-dev at zope.org
> http://mail.zope.org/mailman/listinfo/grok-dev



More information about the Grok-dev mailing list