Mercurial > p > roundup > code
diff roundup/cgi/client.py @ 2490:3af075731c43 maint-0.7
merge from HEAD
| author | Richard Jones <richard@users.sourceforge.net> |
|---|---|
| date | Tue, 22 Jun 2004 23:36:49 +0000 |
| parents | 7a2e55a59928 |
| children | 9e1c4c932323 |
line wrap: on
line diff
--- a/roundup/cgi/client.py Mon Jun 21 05:54:11 2004 +0000 +++ b/roundup/cgi/client.py Tue Jun 22 23:36:49 2004 +0000 @@ -1,4 +1,4 @@ -# $Id: client.py,v 1.176.2.1 2004-05-27 21:52:44 richard Exp $ +# $Id: client.py,v 1.176.2.2 2004-06-22 23:36:49 richard Exp $ """WWW request handler (also used in the stand-alone server). """ @@ -284,6 +284,8 @@ self.clean_sessions() sessions = self.db.getSessionManager() + user = 'anonymous' + # first up, try the REMOTE_USER var (from HTTP Basic Auth handled # by a front-end HTTP server) try: @@ -293,7 +295,6 @@ # look up the user session cookie (may override the REMOTE_USER) cookie = Cookie.SimpleCookie(self.env.get('HTTP_COOKIE', '')) - user = 'anonymous' if (cookie.has_key(self.cookie_name) and cookie[self.cookie_name].value != 'deleted'):
