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

« back to all changes in this revision

Viewing changes to ivle/conf/apps.py

Modified the database so that exercises are now stored in the database, rather
than in flat files.

This also necessitated adding new tables and storm classes for test suites
and test cases.

Note that this commit merely changes the database and adds a script to
upload exercises. The code for actually reading exercises has yet
to be changed.

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
124
# Mapping URL names to apps
167
125
 
168
126
app_url = {
169
127
    "files" : app_browser,
170
128
    "fileservice" : app_fileservice,
171
129
    "console" : app_console,
172
 
    "consoleservice" : app_consoleservice,
173
130
    "tutorial" : app_tutorial,
174
 
    "tutorialservice" : app_tutorialservice,
175
131
    "serve" : app_server,
176
132
    "download" : app_download,
177
 
    "help" : app_help,
 
133
    "+help" : app_help,
178
134
    "forum" : app_forum,
179
135
    "tos" : app_tos,
180
 
    "settings" : app_settings,
181
 
    "groups" : app_groups,
182
136
    "userservice" : app_userservice,
183
 
    "diff" : app_diff,
184
 
    "svnlog" : app_svnlog,
185
137
    "subjects" : app_subjects,
186
 
    "home" : app_home,
187
138
}
188
139
if enable_debuginfo:
189
140
    app_url["debuginfo"] = app_debuginfo
193
144
# Note: The values in this list are the URL names as seen in app_url.
194
145
 
195
146
apps_in_tabs = ["files", "tutorial", "console",
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"]
 
147
                "forum", "subjects", "+help"]