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

409 by mattgiuca
Moved www/conf and www/common to a new directory lib. This separates the "web"
1
# IVLE Configuration File
2
# conf/apps.py
3
# Configuration of plugin applications for IVLE
4
# These should not need to be modified by admins unless new applications are
5
# plugged in.
6
7
enable_debuginfo = False
8
9
# Allow App objects
656 by mattgiuca
Added icons for "home" and "subjects" apps.
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
# icon is a string of a file basename. The icon files are found in
409 by mattgiuca
Moved www/conf and www/common to a new directory lib. This separates the "web"
14
# app_icon_dir, defined below.
15
class App:
656 by mattgiuca
Added icons for "home" and "subjects" apps.
16
    def __init__(self, dir, name, desc=None, icon = None,
17
        requireauth = True, hashelp = False):
409 by mattgiuca
Moved www/conf and www/common to a new directory lib. This separates the "web"
18
        self.dir = dir
19
        self.name = name
656 by mattgiuca
Added icons for "home" and "subjects" apps.
20
        self.desc = desc
409 by mattgiuca
Moved www/conf and www/common to a new directory lib. This separates the "web"
21
        self.icon = icon
22
        self.requireauth = requireauth
23
        self.hashelp = hashelp
24
    def __repr__(self):
656 by mattgiuca
Added icons for "home" and "subjects" apps.
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),
28
                repr(self.hashelp)))
409 by mattgiuca
Moved www/conf and www/common to a new directory lib. This separates the "web"
29
30
# Directory where app icons are stored, relative to the IVLE root.
31
app_icon_dir = "media/images/apps"
32
# Small version of icons (16x16, for favicon)
33
app_icon_dir_small = "media/images/apps/small"
34
35
# Which application to load by default (if the user navigates to the top level
36
# of the site). This is the app's URL name.
37
# Note that if this app requires authentication, the user will first be
38
# presented with the login screen.
621 by mattgiuca
Added 2 new apps: home and subjects. Both fairly incomplete, just a basic
39
default_app = "home"
409 by mattgiuca
Moved www/conf and www/common to a new directory lib. This separates the "web"
40
# Which application to use for "public host" URLs.
41
# (See conf.py)
42
public_app = "serve"
43
44
# Application definitions
45
46
app_browser =   App(dir = "browser",
644 by mattgiuca
Removed Editor app.
47
                    name = "Files",
656 by mattgiuca
Added icons for "home" and "subjects" apps.
48
                    desc = "Gives you access to all of your files and lets "
49
                           "you download, upload, edit and run them.",
409 by mattgiuca
Moved www/conf and www/common to a new directory lib. This separates the "web"
50
                    icon = "browser.png",
51
                    requireauth = True,
52
                    hashelp = True)
53
54
app_fileservice = App(dir = "fileservice",
55
                    name = "File Service (AJAX server)",
56
                    requireauth = True,
57
                    hashelp = False)
58
59
app_console =     App(dir = "console",
60
                    name = "Console",
656 by mattgiuca
Added icons for "home" and "subjects" apps.
61
                    desc = "A Python console where you can try out code "
62
                           "without having to save and run it.",
409 by mattgiuca
Moved www/conf and www/common to a new directory lib. This separates the "web"
63
                    icon = "console.png",
64
                    requireauth = True,
65
                    hashelp = True)
66
67
app_consoleservice = App(dir = "consoleservice",
68
                    name = "Console Service",
69
                    requireauth = True,
70
                    hashelp = False)
71
72
app_tutorial =     App(dir = "tutorial",
644 by mattgiuca
Removed Editor app.
73
                    name = "Worksheets",
656 by mattgiuca
Added icons for "home" and "subjects" apps.
74
                    desc = "Online tutorials and exercises for lab work.",
409 by mattgiuca
Moved www/conf and www/common to a new directory lib. This separates the "web"
75
                    icon = "tutorial.png",
76
                    requireauth = True,
77
                    hashelp = True)
78
79
app_tutorialservice = App(dir = "tutorialservice",
80
                    name = "Tutorial Service",
81
                    requireauth = True,
82
                    hashelp = False)
83
84
app_server =    App(dir = "server",
85
                    name = "Server",
86
                    requireauth = True,
87
                    hashelp = False)
88
89
app_download =  App(dir = "download",
90
                    name = "Download",
91
                    requireauth = True,
92
                    hashelp = False)
93
94
app_help =      App(dir = "help",
95
                    name = "Help",
656 by mattgiuca
Added icons for "home" and "subjects" apps.
96
                    desc = "IVLE help pages",
409 by mattgiuca
Moved www/conf and www/common to a new directory lib. This separates the "web"
97
                    icon = "help.png",
98
                    requireauth = True,
99
                    hashelp = False)
100
101
app_debuginfo = App(dir = "debuginfo",
102
                    name = "Debug Information",
103
                    requireauth = False,
104
                    hashelp = False)
458 by mattgiuca
Added "tos" as an app. This app simply displays the Terms of Service
105
443 by dcoles
Added Forum application along with unmodifed version of phpBB3 "Olympus" 3.0.0
106
app_forum = App(dir = "forum",
107
                    name = "Forum",
656 by mattgiuca
Added icons for "home" and "subjects" apps.
108
                    desc = "Discussion boards for material relating to "
109
                           "Informatics, IVLE and Python.",
443 by dcoles
Added Forum application along with unmodifed version of phpBB3 "Olympus" 3.0.0
110
                    icon = "forum.png",
111
                    requireauth = True,
112
                    hashelp = False)
409 by mattgiuca
Moved www/conf and www/common to a new directory lib. This separates the "web"
113
458 by mattgiuca
Added "tos" as an app. This app simply displays the Terms of Service
114
app_tos = App(dir = "tos",
115
                    name = "Terms of Service",
116
                    requireauth = False,
117
                    hashelp = False)
118
553 by mattgiuca
Added new app: Settings (UI for userservice).
119
app_settings = App(dir = "settings",
120
                    name = "Account Settings",
121
                    icon = "settings.png",
122
                    requireauth = True,
123
                    hashelp = True)
124
478 by mattgiuca
scripts/usrmgr-server: Renamed actions from dashes to underscores.
125
app_userservice = App(dir = "userservice",
465 by mattgiuca
Added new app: userservice, which is an ajax service for user management
126
                    name = "User Management Service",
478 by mattgiuca
scripts/usrmgr-server: Renamed actions from dashes to underscores.
127
                    requireauth = False,
465 by mattgiuca
Added new app: userservice, which is an ajax service for user management
128
                    hashelp = False)
129
562 by dcoles
Added new app: Diff (SVN diff application)
130
app_diff = App(dir = "diff",
131
                    name = "Diff",
132
                    #icon = "forum.png",
133
                    requireauth = True,
134
                    hashelp = False)
135
621 by mattgiuca
Added 2 new apps: home and subjects. Both fairly incomplete, just a basic
136
app_subjects = App(dir = "subjects",
656 by mattgiuca
Added icons for "home" and "subjects" apps.
137
                    name = "Subjects",
138
                    desc = "Announcements and information about the subjects "
139
                           "you are enrolled in.",
140
                    icon = "subjects.png",
621 by mattgiuca
Added 2 new apps: home and subjects. Both fairly incomplete, just a basic
141
                    requireauth = False,
142
                    hashelp = False)
143
144
app_home = App(dir = "home",
145
                    name = "Home",
656 by mattgiuca
Added icons for "home" and "subjects" apps.
146
                    desc = "IVLE home page",
147
                    icon = "home.png",
621 by mattgiuca
Added 2 new apps: home and subjects. Both fairly incomplete, just a basic
148
                    requireauth = True,
149
                    hashelp = False)
150
409 by mattgiuca
Moved www/conf and www/common to a new directory lib. This separates the "web"
151
# Mapping URL names to apps
152
153
app_url = {
154
    "files" : app_browser,
155
    "fileservice" : app_fileservice,
156
    "console" : app_console,
157
    "consoleservice" : app_consoleservice,
158
    "tutorial" : app_tutorial,
159
    "tutorialservice" : app_tutorialservice,
160
    "serve" : app_server,
161
    "download" : app_download,
162
    "help" : app_help,
458 by mattgiuca
Added "tos" as an app. This app simply displays the Terms of Service
163
    "forum" : app_forum,
164
    "tos" : app_tos,
553 by mattgiuca
Added new app: Settings (UI for userservice).
165
    "settings" : app_settings,
465 by mattgiuca
Added new app: userservice, which is an ajax service for user management
166
    "userservice" : app_userservice,
562 by dcoles
Added new app: Diff (SVN diff application)
167
    "diff" : app_diff,
621 by mattgiuca
Added 2 new apps: home and subjects. Both fairly incomplete, just a basic
168
    "subjects" : app_subjects,
169
    "home" : app_home,
409 by mattgiuca
Moved www/conf and www/common to a new directory lib. This separates the "web"
170
}
171
if enable_debuginfo:
172
    app_url["debuginfo"] = app_debuginfo
173
174
# List of apps that go in the tabs at the top
175
# (The others are hidden unless they are linked to)
176
# Note: The values in this list are the URL names as seen in app_url.
177
656 by mattgiuca
Added icons for "home" and "subjects" apps.
178
apps_in_tabs = ["home", "subjects", "files", "tutorial", "console",
179
                "forum", "help"]
180
181
# List of apps that go in the list on the home page
182
apps_on_home_page = ["subjects", "files", "tutorial", "console", "forum"]