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

« back to all changes in this revision

Viewing changes to src/dispatch/html.py

  • Committer: mattgiuca
  • Date: 2007-12-17 04:19:18 UTC
  • Revision ID: svn-v3-trunk0:2b9c9e99-6f39-0410-b283-7f802c844ae2:trunk:70
apps: Added app "debuginfo" which prints out IVLE system properties.
    Added warning in dispatch/html.py if debuginfo is active.
dispatch_handler: Now writes a variable conf.ivlepath to the place IVLE is
    located.

Show diffs side-by-side

added added

removed removed

Lines of Context:
53
53
    req.write("""<body>
54
54
<h1>IVLE - Informatics Virtual Learning Environment</h1>
55
55
""")
 
56
 
 
57
    # If the "debuginfo" app is installed, display a warning to the admin to
 
58
    # make sure it is removed in production.
 
59
    if "debuginfo" in conf.apps.app_url:
 
60
        req.write("<p>Warning: debuginfo is enabled. Remove this app from "
 
61
            "conf.apps.app_url when placed into production.</p>")
 
62
 
56
63
    print_apps_list(req)
57
64
 
58
65
def write_html_foot(req):