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

« back to all changes in this revision

Viewing changes to ivle/conf/apps.py

  • Committer: William Grant
  • Date: 2009-01-13 01:36:15 UTC
  • Revision ID: svn-v3-trunk0:2b9c9e99-6f39-0410-b283-7f802c844ae2:trunk:1123
Merge setup-refactor branch. This completely breaks existing installations;
every path (both filesystem and Python) has changed. Do not upgrade without
knowing what you are doing.

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