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

« back to all changes in this revision

Viewing changes to www/apps/help/__init__.py

  • Committer: mattgiuca
  • Date: 2008-02-14 03:58:43 UTC
  • Revision ID: svn-v3-trunk0:2b9c9e99-6f39-0410-b283-7f802c844ae2:trunk:458
Added "tos" as an app. This app simply displays the Terms of Service
statically, as a reference for already-logged-in users.
There is now a sample license text (www/apps/tos/license).
The "Help" app has a special link to the TOS app.
login: Displays the license text on the TOS page for login-first-time users.

Show diffs side-by-side

added added

removed removed

Lines of Context:
24
24
 
25
25
from common import util
26
26
import os
 
27
import copy
27
28
import conf
28
29
from conf import apps
29
30
 
60
61
 
61
62
    # Write a list of links to all apps with help modules
62
63
    req.write("<ul>\n")
63
 
    for (appurl, app) in conf.apps.app_url.items():
 
64
    # Tab apps, in order of tabs
 
65
    for appurl in conf.apps.apps_in_tabs:
 
66
        app = conf.apps.app_url[appurl]
64
67
        if app.hashelp:
65
68
            req.write('  <li><a href="%s">%s</a></li>\n'
66
69
                % (os.path.join(util.make_path("help"), appurl), app.name))
 
70
    # Terms of Service
 
71
    req.write('  <li><a href="%s">Terms of Service</a></li>\n'
 
72
        % (util.make_path("tos")))
67
73
    req.write("</ul>\n")
68
74
    req.write('</div>\n')
69
75