Mercurial > p > roundup > code
changeset 2938:463902a0fbbb
determine user before context:
SendFile exception handler requires initialized userid attribute.
| author | Alexander Smishlajev <a1s@users.sourceforge.net> |
|---|---|
| date | Sun, 21 Nov 2004 13:27:03 +0000 |
| parents | 46fdfcf42806 |
| children | 00f609d53a8c |
| files | roundup/cgi/client.py |
| diffstat | 1 files changed, 4 insertions(+), 4 deletions(-) [+] |
line wrap: on
line diff
--- a/roundup/cgi/client.py Sat Nov 20 17:46:24 2004 +0000 +++ b/roundup/cgi/client.py Sun Nov 21 13:27:03 2004 +0000 @@ -1,4 +1,4 @@ -# $Id: client.py,v 1.203 2004-11-20 17:46:24 a1s Exp $ +# $Id: client.py,v 1.204 2004-11-21 13:27:03 a1s Exp $ """WWW request handler (also used in the stand-alone server). """ @@ -215,15 +215,15 @@ try: self.determine_charset() + # make sure we're identified (even anonymously) + self.determine_user() + # figure out the context and desired content template # do this first so we don't authenticate for static files # Note: this method opens the database as "admin" in order to # perform context checks self.determine_context() - # make sure we're identified (even anonymously) - self.determine_user() - # possibly handle a form submit action (may change self.classname # and self.template, and may also append error/ok_messages) html = self.handle_action()
