Skip to content

Commit 52b802a

Browse files
author
Alexander Smishlajev
committed
determine user before context:
SendFile exception handler requires initialized userid attribute.
1 parent 4c26676 commit 52b802a

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

roundup/cgi/client.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# $Id: client.py,v 1.203 2004-11-20 17:46:24 a1s Exp $
1+
# $Id: client.py,v 1.204 2004-11-21 13:27:03 a1s Exp $
22

33
"""WWW request handler (also used in the stand-alone server).
44
"""
@@ -215,15 +215,15 @@ def inner_main(self):
215215
try:
216216
self.determine_charset()
217217

218+
# make sure we're identified (even anonymously)
219+
self.determine_user()
220+
218221
# figure out the context and desired content template
219222
# do this first so we don't authenticate for static files
220223
# Note: this method opens the database as "admin" in order to
221224
# perform context checks
222225
self.determine_context()
223226

224-
# make sure we're identified (even anonymously)
225-
self.determine_user()
226-
227227
# possibly handle a form submit action (may change self.classname
228228
# and self.template, and may also append error/ok_messages)
229229
html = self.handle_action()

0 commit comments

Comments
 (0)