The "User Authentication with PostgreSQL database" tutorial in
web.py's documentation includes the following function:
def logged():
if session.login==1:
return True
else:
return False
Which is execrable, and the kind of thing you learn to stop writing in
a first-year programming course. For the sake of encouraging good
coding habits and having documentation that reflects well on web.py,
I'd suggest changing this to the one-liner that it should be.
Cheers,
Colin Morris
--
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.