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

« back to all changes in this revision

Viewing changes to www/dispatch/__init__.py

  • Committer: mattgiuca
  • Date: 2008-02-24 22:09:16 UTC
  • Revision ID: svn-v3-trunk0:2b9c9e99-6f39-0410-b283-7f802c844ae2:trunk:553
Added new app: Settings (UI for userservice).
    (Added app dir, media dir with empty JS file, icon).
apps/__init__.py: Added error message.
dispatch/__init__.py: Added error message.
dispatch/html.py: Added link to Settings at the top
    (a special app).
    Fixed HTML icons (correct size link).
    Catch keyerror on icon which would otherwise be thrown all
    the way up on certain errors.

Show diffs side-by-side

added added

removed removed

Lines of Context:
84
84
        if req.app == 'logout':
85
85
            logout(req)
86
86
        else:
87
 
            # TODO: Nicer 404 message?
88
 
            req.throw_error(Request.HTTP_NOT_FOUND)
 
87
            req.throw_error(Request.HTTP_NOT_FOUND,
 
88
                "There is no application called %s." % repr(req.app))
89
89
 
90
90
    # Special handling for public mode - just call public app and get out
91
91
    # NOTE: This will not behave correctly if the public app uses