# info.py : A sample page that demonstrates how to find out # who the current user is. import User userObj = User.getCurrentUser(environ) if userObj != None: print "<P>This page would be customized for user '%s'." % (userObj.userID,) else: print """<P>You're not logged in as a registered user, so you'd see this page without any customizations."""
A CGI Framework in Python (Web Techniques, Feb 1998)
Related Reading
More Insights
INFO-LINK
To upload an avatar photo, first complete your Disqus profile. | View the list of supported HTML tags you can use to style comments. | Please read our commenting policy. | |