7
7
enable_debuginfo = False
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
# icon is a string of a file basename. The icon files are found in
10
# Note: icon is a string of a file basename. The icon files are found in
14
11
# app_icon_dir, defined below.
16
def __init__(self, dir, name, desc=None, icon = None,
17
requireauth = True, hashelp = False):
13
def __init__(self, dir, name, icon = None, requireauth = True,
22
18
self.requireauth = requireauth
23
19
self.hashelp = hashelp
24
20
def __repr__(self):
25
return ("App(dir=%s, name=%s, desc=%s, icon=%s, requireauth=%s, "
26
"hashelp=%s)" % (repr(self.dir), repr(self.name),
27
repr(self.desc), repr(self.icon), repr(self.requireauth),
21
return ("App(dir=" + repr(self.dir) + ", name=" + repr(self.name) +
22
", icon=" + repr(self.icon) +
23
", requireauth=" + repr(self.requireauth) + ", hashelp="
24
+ repr(self.hashelp) + ")")
30
26
# Directory where app icons are stored, relative to the IVLE root.
31
27
app_icon_dir = "media/images/apps"
46
42
app_browser = App(dir = "browser",
48
desc = "Gives you access to all of your files and lets "
49
"you download, upload, edit and run them.",
50
44
icon = "browser.png",
51
45
requireauth = True,
106
96
app_forum = App(dir = "forum",
108
desc = "Discussion boards for material relating to "
109
"Informatics, IVLE and Python.",
110
98
icon = "forum.png",
111
99
requireauth = True,
136
124
app_subjects = App(dir = "subjects",
138
desc = "Announcements and information about the subjects "
139
"you are enrolled in.",
140
icon = "subjects.png",
125
name = "Subject Homepages",
141
126
requireauth = False,
144
129
app_home = App(dir = "home",
146
desc = "IVLE home page",
148
131
requireauth = True,
175
158
# (The others are hidden unless they are linked to)
176
159
# Note: The values in this list are the URL names as seen in app_url.
178
apps_in_tabs = ["home", "subjects", "files", "tutorial", "console",
181
# List of apps that go in the list on the home page
182
apps_on_home_page = ["subjects", "files", "tutorial", "console", "forum"]
161
apps_in_tabs = ["files", "tutorial", "console", "forum", "help"]