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

« back to all changes in this revision

Viewing changes to www/dispatch/html.py

  • Committer: dcoles
  • Date: 2008-04-07 05:58:29 UTC
  • Revision ID: svn-v3-trunk0:2b9c9e99-6f39-0410-b283-7f802c844ae2:trunk:728
Browser: Added support for the 'Share this file' button. At the moment it opens 
a new window with the public side of the serve app.
    d/html.py: Exports public_host parameter in script header
    m/b/browser.js: Added code to show public serve window
    m/c/util.js: Added public_app_path function to return the public app url of 
    an app.

Show diffs side-by-side

added added

removed removed

Lines of Context:
59
59
        username = "null"
60
60
    req.write("""  <script type="text/javascript">
61
61
    root_dir = %s;
 
62
    public_host = %s;
62
63
    username = %s;
63
64
  </script>
64
 
""" % (repr(conf.root_dir), username))
 
65
""" % (repr(conf.root_dir), repr(conf.public_host), username))
65
66
    iconurl = get_icon_url(req.app, small=True)
66
67
    if iconurl:
67
68
        req.write("""  <link rel="shortcut icon" href="%s" />