-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

> In my little example app, I'm doing it like this:
> 
> https://github.com/DaGoodBoy/webpy-example/blob/master/index.py
> 
>   # Start the session and stick it in a database
>   sdb = sessiondb.SessionDB( app )
> 
>   # This is required for the sub-apps and templates to
>   # access to the shared session data
>   def session_hook():
>     web.ctx.session = sdb.get_session()
>     web.template.Template.globals['session'] = sdb.get_session()
> 
>   # This adds the session data as an app processor
>   app.add_processor( web.loadhook( session_hook ) )
> 
> It looks like you aren't calling get_session() when you assign it; you
> are just putting the session variable in there. Is that correct?

Please ignore me, that is my own class and function... i am too tired to
be on a mailing list... ;)

T
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.11 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iQEcBAEBAgAGBQJN1rz5AAoJEAPVzrg8OofbG4sIAI0o/nhxhDJ3F+yxKpeJ4V4n
0B6DrSrBmUEN/VMNvYb0zqG8t4pPQQDk6Ahj2noLu0m8+FAL3xb1slD+CM8NIRZ0
8u3N+uwQiQY09bOXcrbUTTk0T16ONyfWdhQoPwRRpxbOPVBZgPk0M5exnVLFhlnO
831qAC9Cv9js3dV3HksyR98oe96pjf1Wqzjgq0R88O8h2UcY/ryvJe+FBGwJ2Asm
scBppM/Rl/w8/wpXJ4ZbB/FO9hZ5q5zLiUmwRMj+tkqqr8hu2WOfKnOcAahZT1w7
xnjCvh/0XxS3d686SPiDzi+qIo0/2JC7/FwB+fBGj9gG1AlgCmIt0kKgxsnO18U=
=JvBx
-----END PGP SIGNATURE-----

-- 
You received this message because you are subscribed to the Google Groups 
"web.py" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/webpy?hl=en.

Reply via email to