Who is logged in??

Christopher Clarke <cclarke-wYfHrJ5eQDBWk0Htik3J/[email protected]> Tue, 26 Jun 2007 12:45:27 -0400
Newsgroups gmane.comp.python.spyce.general
Message-ID <[email protected]>
Hi All
I am using spyce2.1

I am currently switching  to the spy:login tag from my  own stuff  
which was based on the session and cookie
Once the user was validated i store the their user_name,group etc in  
the session['udata']
This was accomplished in by including
[[.include file="/includes/auth.spi"]]
in every .spy file
In this way i could personalize page based on who was accessing them

In switching to the login tag i was attempting to access the session  
from the config.py
But i just colud not get a handle on it (the session that is).
I've tried
session['user_data'] = udata #udata is a dict of user attributes
It appears to work but when  i try to access this from the page i get  
an invalid key error
I've used the session in my active handlers by using api.session
how do i and set session variable from config.py>>
In any case is this the best way to achieve what i am trying to do???

Regards
Chris







-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/