~azzar1/unity/add-show-desktop-key

« back to all changes in this revision

Viewing changes to ivle/webapp/base/xhtml.py

  • Committer: William Grant
  • Date: 2009-12-02 04:02:19 UTC
  • mto: This revision was merged to the branch mainline in revision 1353.
  • Revision ID: grantw@unimelb.edu.au-20091202040219-z2qumlxdkmestikd
Use a different set of routes for public mode, too.

Show diffs side-by-side

added added

removed removed

Lines of Context:
233
233
    def __init__(self, req, exception, lastobj):
234
234
        super(XHTMLUnauthorizedView, self).__init__(req, exception, lastobj)
235
235
 
236
 
        if req.user is None:
 
236
        if not req.publicmode and req.user is None:
237
237
            # Not logged in. Redirect to login page.
238
238
            if req.uri == '/':
239
239
                query_string = ''