4
4
# These should not need to be modified by admins unless new applications are
7
enable_debuginfo = False
10
# Note: icon is a string of a file basename. The icon files are found in
11
# app_icon_dir, defined below.
9
def __init__(self, dir, name, requireauth = True, hashelp = False):
13
def __init__(self, dir, name, icon = None, requireauth = True,
12
18
self.requireauth = requireauth
13
19
self.hashelp = hashelp
14
20
def __repr__(self):
15
21
return ("App(dir=" + repr(self.dir) + ", name=" + repr(self.name) +
22
", icon=" + repr(self.icon) +
16
23
", requireauth=" + repr(self.requireauth) + ", hashelp="
17
24
+ repr(self.hashelp) + ")")
26
# Directory where app icons are stored, relative to the IVLE root.
27
app_icon_dir = "media/images/apps"
28
# Small version of icons (16x16, for favicon)
29
app_icon_dir_small = "media/images/apps/small"
31
# Which application to load by default (if the user navigates to the top level
32
# of the site). This is the app's URL name.
33
# Note that if this app requires authentication, the user will first be
34
# presented with the login screen.
36
# Which application to use for "public host" URLs.
19
40
# Application definitions
21
app_dummy = App(dir = "dummy",
22
name = "My Dummy App",
26
42
app_browser = App(dir = "browser",
27
43
name = "File Browser",
48
app_editor = App(dir = "editor",
28
51
requireauth = True,
33
56
requireauth = True,
59
app_console = App(dir = "console",
65
app_consoleservice = App(dir = "consoleservice",
66
name = "Console Service",
70
app_tutorial = App(dir = "tutorial",
72
icon = "tutorial.png",
36
76
app_server = App(dir = "server",
41
81
app_download = App(dir = "download",
56
97
# Mapping URL names to apps
60
100
"files" : app_browser,
61
102
"fileservice" : app_fileservice,
103
"console" : app_console,
104
"consoleservice" : app_consoleservice,
105
"tutorial" : app_tutorial,
62
106
"serve" : app_server,
63
107
"download" : app_download,
64
108
"help" : app_help,
65
#"debuginfo" : app_debuginfo,
111
app_url["debuginfo"] = app_debuginfo
68
113
# List of apps that go in the tabs at the top
69
114
# (The others are hidden unless they are linked to)
70
115
# Note: The values in this list are the URL names as seen in app_url.
72
apps_in_tabs = ["dummy", "files", "help"]
117
apps_in_tabs = ["files", "edit", "console", "tutorial", "help"]