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

« back to all changes in this revision

Viewing changes to www/apps/browser/__init__.py

  • Committer: dcoles
  • Date: 2008-05-09 07:34:23 UTC
  • Revision ID: svn-v3-trunk0:2b9c9e99-6f39-0410-b283-7f802c844ae2:trunk:752
Browser: Redirect to 'files/LOGIN' when URL is just 'files' rather than just 
getting the login from req.user. While req.user works here, other modules 
(particularly the javascript and in jail components) might have to use the URL 
instead.

Show diffs side-by-side

added added

removed removed

Lines of Context:
41
41
    browsepath = req.path
42
42
    if len(browsepath) == 0:
43
43
        # If no path specified, default to the user's home directory
44
 
        browsepath = req.user.login
 
44
        redirectPath = util.make_path(os.path.join(THIS_APP,req.user.login))
 
45
        req.throw_redirect(util.make_path(redirectPath))
45
46
 
46
47
    # Set request attributes
47
48
    req.content_type = "text/html"