Hi, i have the code that's below in config file. Session works great
when i do something like:

session.email = '[EMAIL PROTECTED]

but if i want to do something like

session.user.email = '[EMAIL PROTECTED]'

i get an error like this:

AttributeError: 'dict' object has no attribute 'email'

how can i fix that?

Thanks in advance.


####part of config file####

sess_store = tempfile.mkdtemp()
session = web.session.Session(None, web.session.DiskStore(sess_store))

g = web.template.Template.globals
g['session'] = session
# set our global base template
base = web.template.render('app/views/base/', globals=g, cache=cache)

def setup_session(app):
    app.add_processor(session._processor)
--~--~---------~--~----~------------~-------~--~----~
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