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

« back to all changes in this revision

Viewing changes to www/dispatch/html.py

  • Committer: drtomc
  • Date: 2008-03-04 01:17:10 UTC
  • Revision ID: svn-v3-trunk0:2b9c9e99-6f39-0410-b283-7f802c844ae2:trunk:636
remakeuser: use the database, not the password file.

Show diffs side-by-side

added added

removed removed

Lines of Context:
24
24
# Does not include the login page. See login.py.
25
25
 
26
26
import cgi
27
 
import urllib
28
27
import os.path
29
28
 
30
29
import conf
59
58
        username = "null"
60
59
    req.write("""  <script type="text/javascript">
61
60
    root_dir = %s;
62
 
    public_host = %s;
63
61
    username = %s;
64
62
  </script>
65
 
""" % (repr(conf.root_dir), repr(conf.public_host), username))
 
63
""" % (repr(conf.root_dir), username))
66
64
    iconurl = get_icon_url(req.app, small=True)
67
65
    if iconurl:
68
66
        req.write("""  <link rel="shortcut icon" href="%s" />
177
175
        file.write('    <li%s>' % li_attr)
178
176
        if app.icon:
179
177
            file.write('<img src="%s" alt="" /> '
180
 
                % urllib.quote(get_icon_url(urlname)))
181
 
        file.write('<a href="%s" title="%s">%s</a></li>\n'
182
 
            % (urllib.quote(util.make_path(urlname)), cgi.escape(app.desc),
183
 
                cgi.escape(app.name)))
 
178
                % cgi.escape(get_icon_url(urlname)))
 
179
        file.write('<a href="%s">%s</a></li>\n'
 
180
            % (cgi.escape(util.make_path(urlname)), cgi.escape(app.name)))
184
181
 
185
182
    file.write('  </ul>\n')