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

« back to all changes in this revision

Viewing changes to www/dispatch/html.py

  • Committer: mattgiuca
  • Date: 2008-01-09 03:42:54 UTC
  • Revision ID: svn-v3-trunk0:2b9c9e99-6f39-0410-b283-7f802c844ae2:trunk:135
dispatch_handler: Fixed exception handler, no longer catches ALL keyerrors in
the entire application suite, only the one intended.
dispatch/html.py: Fixed href links in the tabs at the top - now link to the
URL name of the app, not the dir name (which would be broken if an app had a
different URL name to its dir name).

Show diffs side-by-side

added added

removed removed

Lines of Context:
87
87
    for urlname in conf.apps.apps_in_tabs:
88
88
        app = conf.apps.app_url[urlname]
89
89
        file.write('  <li><a href="%s">%s</a></li>\n'
90
 
            % (util.make_path(app.dir), app.name))
 
90
            % (util.make_path(urlname), app.name))
91
91
 
92
92
    file.write('</ul>\n')