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

« back to all changes in this revision

Viewing changes to lib/conf/apps.py

  • Committer: dcoles
  • Date: 2008-07-10 07:23:01 UTC
  • Revision ID: svn-v3-trunk0:2b9c9e99-6f39-0410-b283-7f802c844ae2:trunk:847
Login: Give some smarter feedback from the userservice if the TOS fails. A 
retry button might be nice too...

Show diffs side-by-side

added added

removed removed

Lines of Context:
14
14
# app_icon_dir, defined below.
15
15
class App:
16
16
    def __init__(self, dir, name, desc=None, icon = None,
17
 
        useconsole = False, requireauth = True, hashelp = False):
 
17
        requireauth = True, hashelp = False):
18
18
        self.dir = dir
19
19
        self.name = name
20
20
        self.desc = desc
21
21
        self.icon = icon
22
 
        self.useconsole = useconsole
23
22
        self.requireauth = requireauth
24
23
        self.hashelp = hashelp
25
24
    def __repr__(self):
37
36
# of the site). This is the app's URL name.
38
37
# Note that if this app requires authentication, the user will first be
39
38
# presented with the login screen.
40
 
default_app = "files"
 
39
default_app = "home"
41
40
# Which application to use for "public host" URLs.
42
41
# (See conf.py)
43
42
public_app = "serve"
49
48
                    desc = "Gives you access to all of your files and lets "
50
49
                           "you download, upload, edit and run them.",
51
50
                    icon = "browser.png",
52
 
                    useconsole = True,
53
51
                    requireauth = True,
54
52
                    hashelp = True)
55
53
 
63
61
                    desc = "A Python console where you can try out code "
64
62
                           "without having to save and run it.",
65
63
                    icon = "console.png",
66
 
                    useconsole = False, # We use a full console in this app
67
64
                    requireauth = True,
68
65
                    hashelp = True)
69
66
 
76
73
                    name = "Worksheets",
77
74
                    desc = "Online tutorials and exercises for lab work.",
78
75
                    icon = "tutorial.png",
79
 
                    useconsole = True,
80
76
                    requireauth = True,
81
77
                    hashelp = True)
82
78
 
126
122
                    requireauth = True,
127
123
                    hashelp = True)
128
124
 
129
 
app_groups = App(dir = "groups",
130
 
                    name = "Group Management",
131
 
                    icon = "groups.png",
132
 
                    requireauth = True,
133
 
                    hashelp = True)
134
 
 
135
125
app_userservice = App(dir = "userservice",
136
126
                    name = "User Management Service",
137
127
                    requireauth = False,
178
168
    "forum" : app_forum,
179
169
    "tos" : app_tos,
180
170
    "settings" : app_settings,
181
 
    "groups" : app_groups,
182
171
    "userservice" : app_userservice,
183
172
    "diff" : app_diff,
184
173
    "svnlog" : app_svnlog,
192
181
# (The others are hidden unless they are linked to)
193
182
# Note: The values in this list are the URL names as seen in app_url.
194
183
 
195
 
apps_in_tabs = ["files", "tutorial", "console",
196
 
                "forum", "subjects", "help"]
 
184
apps_in_tabs = ["home", "subjects", "files", "tutorial", "console",
 
185
                "forum", "help"]
197
186
 
198
187
# List of apps that go in the list on the home page
199
188
apps_on_home_page = ["subjects", "files", "tutorial", "console", "forum"]