On Nov 19, 2010, at 8:51 AM, David wrote:

> Hi all,
> 
> I tried last example (User authentication) of web.py 0.3 tutorial
> (http://webpy.org/tutorial3), but Python told me there is a error
> (AttributeError: 'user'):
> 
>  File "/home/davyzhu/test/webpy_hello/hello.py", line 57, in GET
>    return render.hello(session.user, my_signin)
> 
> Dose session have attribute user? And where can I find information
> about it?

Did you find below line in turorial? It initializes key 'user'.

# ----
session = web.session.Session(app, web.session.DiskStore('sessions'),
                              initializer={'user': 'anonymous'})
# ----

-- 
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