31
29
# Small version of icons (16x16, for favicon)
32
30
app_icon_dir_small = "+media/ivle.webapp.core/images/apps/small"
34
# Which application to load by default (if the user navigates to the top level
35
# of the site). This is the app's URL name.
36
# Note that if this app requires authentication, the user will first be
37
# presented with the login screen.
39
32
# Which application to use for "public host" URLs.
41
34
public_app = "serve"
43
36
# Application definitions
45
app_browser = App(dir = "browser",
47
desc = "Gives you access to all of your files and lets "
48
"you download, upload, edit and run them.",
54
38
app_fileservice = App(dir = "fileservice",
55
39
name = "File Service (AJAX server)",
56
40
requireauth = True,
59
app_console = App(dir = "console",
61
desc = "A Python console where you can try out code "
62
"without having to save and run it.",
64
useconsole = False, # We use a full console in this app
68
app_tutorial = App(dir = "tutorial",
70
desc = "Online tutorials and exercises for lab work.",
71
icon = "tutorial.png",
76
43
app_server = App(dir = "server",
78
45
requireauth = True,
83
50
requireauth = True,
86
app_help = App(dir = "help",
88
desc = "IVLE help pages",
93
app_debuginfo = App(dir = "debuginfo",
94
name = "Debug Information",
98
app_forum = App(dir = "forum",
100
desc = "Discussion boards for material relating to "
101
"Informatics, IVLE and Python.",
106
app_tos = App(dir = "tos",
107
name = "Terms of Service",
111
52
app_userservice = App(dir = "userservice",
112
53
name = "User Management Service",
113
54
requireauth = False,
116
app_subjects = App(dir = "subjects",
118
desc = "Announcements and information about the subjects "
119
"you are enrolled in.",
120
icon = "subjects.png",
124
57
# Mapping URL names to apps
127
"files" : app_browser,
128
60
"fileservice" : app_fileservice,
129
"console" : app_console,
130
"tutorial" : app_tutorial,
131
61
"serve" : app_server,
132
62
"download" : app_download,
136
63
"userservice" : app_userservice,
137
"subjects" : app_subjects,
140
app_url["debuginfo"] = app_debuginfo
142
# List of apps that go in the tabs at the top
143
# (The others are hidden unless they are linked to)
144
# Note: The values in this list are the URL names as seen in app_url.
146
apps_in_tabs = ["files", "tutorial", "console",
147
"forum", "subjects", "+help"]