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

« back to all changes in this revision

Viewing changes to www/dispatch/request.py

  • Committer: wagrant
  • Date: 2008-07-22 05:03:42 UTC
  • Revision ID: svn-v3-trunk0:2b9c9e99-6f39-0410-b283-7f802c844ae2:trunk:932
dispatch (public): Don't attempt to get user details if we are on the
      public site, as that generates a cookie. While we're at it, don't
      entirely ignore the selected application in public mode - return
      a 403 if it isn't the public app instead.

Show diffs side-by-side

added added

removed removed

Lines of Context:
185
185
        # Split the given path into the app (top-level dir) and sub-path
186
186
        # (after first stripping away the root directory)
187
187
        path = common.util.unmake_path(req.uri)
188
 
        if self.publicmode:
189
 
            self.app = None
190
 
            (_, self.path) = (common.util.split_path(path))
191
 
        else:
192
 
            (self.app, self.path) = (common.util.split_path(path))
 
188
        (self.app, self.path) = (common.util.split_path(path))
193
189
        self.user = None
194
190
        self.hostname = req.hostname
195
191
        self.headers_in = req.headers_in