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

« back to all changes in this revision

Viewing changes to ivle/conf/apps.py

Port the tos app to the new framework, and fix ivle.webapp.help's reference
to it.

Show diffs side-by-side

added added

removed removed

Lines of Context:
8
8
 
9
9
# Allow App objects
10
10
# Notes:
11
 
# desc is a full description for the front page. It isn't required
12
 
# unless this app is in apps_on_home_page.
13
11
# icon is a string of a file basename. The icon files are found in
14
12
# app_icon_dir, defined below.
15
13
class App:
29
27
                repr(self.hashelp)))
30
28
 
31
29
# Directory where app icons are stored, relative to the IVLE root.
32
 
app_icon_dir = "media/images/apps"
 
30
app_icon_dir = "+media/ivle.webapp.core/images/apps"
33
31
# Small version of icons (16x16, for favicon)
34
 
app_icon_dir_small = "media/images/apps/small"
 
32
app_icon_dir_small = "+media/ivle.webapp.core/images/apps/small"
35
33
 
36
34
# Which application to load by default (if the user navigates to the top level
37
35
# of the site). This is the app's URL name.
67
65
                    requireauth = True,
68
66
                    hashelp = True)
69
67
 
70
 
app_consoleservice = App(dir = "consoleservice",
71
 
                    name = "Console Service",
72
 
                    requireauth = True,
73
 
                    hashelp = False)
74
 
 
75
68
app_tutorial =     App(dir = "tutorial",
76
69
                    name = "Worksheets",
77
70
                    desc = "Online tutorials and exercises for lab work.",
80
73
                    requireauth = True,
81
74
                    hashelp = True)
82
75
 
83
 
app_tutorialservice = App(dir = "tutorialservice",
84
 
                    name = "Tutorial Service",
85
 
                    requireauth = True,
86
 
                    hashelp = False)
87
 
 
88
76
app_server =    App(dir = "server",
89
77
                    name = "Server",
90
78
                    requireauth = True,
120
108
                    requireauth = False,
121
109
                    hashelp = False)
122
110
 
123
 
app_settings = App(dir = "settings",
124
 
                    name = "Account Settings",
125
 
                    icon = "settings.png",
126
 
                    requireauth = True,
127
 
                    hashelp = True)
128
 
 
129
 
app_groups = App(dir = "groups",
130
 
                    name = "Group Management",
131
 
                    icon = "groups.png",
132
 
                    requireauth = True,
133
 
                    hashelp = True)
134
 
 
135
111
app_userservice = App(dir = "userservice",
136
112
                    name = "User Management Service",
137
113
                    requireauth = False,
138
114
                    hashelp = False)
139
115
 
140
 
app_diff = App(dir = "diff",
141
 
                    name = "Diff",
142
 
                    #icon = "forum.png",
143
 
                    requireauth = True,
144
 
                    hashelp = False)
145
 
 
146
 
app_svnlog = App(dir = "svnlog",
147
 
                    name = "Subversion Log",
148
 
                    requireauth = True,
149
 
                    hashelp = False)
150
 
 
151
116
app_subjects = App(dir = "subjects",
152
117
                    name = "Subjects",
153
118
                    desc = "Announcements and information about the subjects "
156
121
                    requireauth = False,
157
122
                    hashelp = False)
158
123
 
159
 
app_home = App(dir = "home",
160
 
                    name = "Home",
161
 
                    desc = "IVLE home page",
162
 
                    icon = "home.png",
163
 
                    requireauth = True,
164
 
                    hashelp = False)
165
 
 
166
 
app_logout = App(dir = "logout",
167
 
                    name = "Logout",
168
 
                    requireauth = True,
169
 
                    hashelp = False)
170
 
 
171
124
# Mapping URL names to apps
172
125
 
173
126
app_url = {
174
127
    "files" : app_browser,
175
128
    "fileservice" : app_fileservice,
176
129
    "console" : app_console,
177
 
    "consoleservice" : app_consoleservice,
178
130
    "tutorial" : app_tutorial,
179
 
    "tutorialservice" : app_tutorialservice,
180
131
    "serve" : app_server,
181
132
    "download" : app_download,
182
 
    "help" : app_help,
 
133
    "+help" : app_help,
183
134
    "forum" : app_forum,
184
135
    "tos" : app_tos,
185
 
    "settings" : app_settings,
186
 
    "groups" : app_groups,
187
136
    "userservice" : app_userservice,
188
 
    "diff" : app_diff,
189
 
    "svnlog" : app_svnlog,
190
137
    "subjects" : app_subjects,
191
 
    "home" : app_home,
192
 
    "logout" : app_logout,
193
138
}
194
139
if enable_debuginfo:
195
140
    app_url["debuginfo"] = app_debuginfo
199
144
# Note: The values in this list are the URL names as seen in app_url.
200
145
 
201
146
apps_in_tabs = ["files", "tutorial", "console",
202
 
                "forum", "subjects", "help"]
203
 
 
204
 
# List of apps that go in the list on the home page
205
 
apps_on_home_page = ["subjects", "files", "tutorial", "console", "forum"]
 
147
                "forum", "subjects", "+help"]