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

« back to all changes in this revision

Viewing changes to ivle/conf/apps.py

  • Committer: William Grant
  • Date: 2009-01-20 06:00:55 UTC
  • mto: This revision was merged to the branch mainline in revision 1090.
  • Revision ID: grantw@unimelb.edu.au-20090120060055-iuvd8hycor67acfa
ivle.rpc.decorators: Add (new package, too). Has a couple of decorators to
    apply most security policy in userservice, making it significantly shorter
    and easier to audit.
www/apps/userservice: Use the decorators to protect all actions whose existing
    policy can be easily replaced with them.

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.
11
13
# icon is a string of a file basename. The icon files are found in
12
14
# app_icon_dir, defined below.
13
15
class App:
27
29
                repr(self.hashelp)))
28
30
 
29
31
# Directory where app icons are stored, relative to the IVLE root.
30
 
app_icon_dir = "+media/ivle.webapp.core/images/apps"
 
32
app_icon_dir = "media/images/apps"
31
33
# Small version of icons (16x16, for favicon)
32
 
app_icon_dir_small = "+media/ivle.webapp.core/images/apps/small"
 
34
app_icon_dir_small = "media/images/apps/small"
33
35
 
34
36
# Which application to load by default (if the user navigates to the top level
35
37
# of the site). This is the app's URL name.
65
67
                    requireauth = True,
66
68
                    hashelp = True)
67
69
 
 
70
app_consoleservice = App(dir = "consoleservice",
 
71
                    name = "Console Service",
 
72
                    requireauth = True,
 
73
                    hashelp = False)
 
74
 
68
75
app_tutorial =     App(dir = "tutorial",
69
76
                    name = "Worksheets",
70
77
                    desc = "Online tutorials and exercises for lab work.",
73
80
                    requireauth = True,
74
81
                    hashelp = True)
75
82
 
 
83
app_tutorialservice = App(dir = "tutorialservice",
 
84
                    name = "Tutorial Service",
 
85
                    requireauth = True,
 
86
                    hashelp = False)
 
87
 
76
88
app_server =    App(dir = "server",
77
89
                    name = "Server",
78
90
                    requireauth = True,
108
120
                    requireauth = False,
109
121
                    hashelp = False)
110
122
 
 
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
 
111
135
app_userservice = App(dir = "userservice",
112
136
                    name = "User Management Service",
113
137
                    requireauth = False,
114
138
                    hashelp = False)
115
139
 
 
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
 
116
151
app_subjects = App(dir = "subjects",
117
152
                    name = "Subjects",
118
153
                    desc = "Announcements and information about the subjects "
121
156
                    requireauth = False,
122
157
                    hashelp = False)
123
158
 
 
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
app_logout = App(dir = "logout",
 
167
                    name = "Logout",
 
168
                    requireauth = True,
 
169
                    hashelp = False)
 
170
 
124
171
# Mapping URL names to apps
125
172
 
126
173
app_url = {
127
174
    "files" : app_browser,
128
175
    "fileservice" : app_fileservice,
129
176
    "console" : app_console,
 
177
    "consoleservice" : app_consoleservice,
130
178
    "tutorial" : app_tutorial,
 
179
    "tutorialservice" : app_tutorialservice,
131
180
    "serve" : app_server,
132
181
    "download" : app_download,
133
182
    "help" : app_help,
134
183
    "forum" : app_forum,
135
184
    "tos" : app_tos,
 
185
    "settings" : app_settings,
 
186
    "groups" : app_groups,
136
187
    "userservice" : app_userservice,
 
188
    "diff" : app_diff,
 
189
    "svnlog" : app_svnlog,
137
190
    "subjects" : app_subjects,
 
191
    "home" : app_home,
 
192
    "logout" : app_logout,
138
193
}
139
194
if enable_debuginfo:
140
195
    app_url["debuginfo"] = app_debuginfo
145
200
 
146
201
apps_in_tabs = ["files", "tutorial", "console",
147
202
                "forum", "subjects", "help"]
 
203
 
 
204
# List of apps that go in the list on the home page
 
205
apps_on_home_page = ["subjects", "files", "tutorial", "console", "forum"]