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

« back to all changes in this revision

Viewing changes to ivle/conf/apps.py

Remove the old framework's tab-printing ability.

This lets us clean up ivle.conf.apps a lot, so do it.

Show diffs side-by-side

added added

removed removed

Lines of Context:
4
4
# These should not need to be modified by admins unless new applications are
5
5
# plugged in.
6
6
 
7
 
enable_debuginfo = False
8
 
 
9
7
# Allow App objects
10
8
# Notes:
11
9
# icon is a string of a file basename. The icon files are found in
31
29
# Small version of icons (16x16, for favicon)
32
30
app_icon_dir_small = "+media/ivle.webapp.core/images/apps/small"
33
31
 
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.
38
 
default_app = "files"
39
32
# Which application to use for "public host" URLs.
40
33
# (See conf.py)
41
34
public_app = "serve"
42
35
 
43
36
# Application definitions
44
37
 
45
 
app_browser =   App(dir = "browser",
46
 
                    name = "Files",
47
 
                    desc = "Gives you access to all of your files and lets "
48
 
                           "you download, upload, edit and run them.",
49
 
                    icon = "browser.png",
50
 
                    useconsole = True,
51
 
                    requireauth = True,
52
 
                    hashelp = True)
53
 
 
54
38
app_fileservice = App(dir = "fileservice",
55
39
                    name = "File Service (AJAX server)",
56
40
                    requireauth = True,
57
41
                    hashelp = False)
58
42
 
59
 
app_console =     App(dir = "console",
60
 
                    name = "Console",
61
 
                    desc = "A Python console where you can try out code "
62
 
                           "without having to save and run it.",
63
 
                    icon = "console.png",
64
 
                    useconsole = False, # We use a full console in this app
65
 
                    requireauth = True,
66
 
                    hashelp = True)
67
 
 
68
 
app_tutorial =     App(dir = "tutorial",
69
 
                    name = "Worksheets",
70
 
                    desc = "Online tutorials and exercises for lab work.",
71
 
                    icon = "tutorial.png",
72
 
                    useconsole = True,
73
 
                    requireauth = True,
74
 
                    hashelp = True)
75
 
 
76
43
app_server =    App(dir = "server",
77
44
                    name = "Server",
78
45
                    requireauth = True,
82
49
                    name = "Download",
83
50
                    requireauth = True,
84
51
                    hashelp = False)
85
 
 
86
 
app_help =      App(dir = "help",
87
 
                    name = "Help",
88
 
                    desc = "IVLE help pages",
89
 
                    icon = "help.png",
90
 
                    requireauth = True,
91
 
                    hashelp = False)
92
 
 
93
 
app_debuginfo = App(dir = "debuginfo",
94
 
                    name = "Debug Information",
95
 
                    requireauth = False,
96
 
                    hashelp = False)
97
 
 
98
 
app_forum = App(dir = "forum",
99
 
                    name = "Forum",
100
 
                    desc = "Discussion boards for material relating to "
101
 
                           "Informatics, IVLE and Python.",
102
 
                    icon = "forum.png",
103
 
                    requireauth = True,
104
 
                    hashelp = False)
105
 
 
106
 
app_tos = App(dir = "tos",
107
 
                    name = "Terms of Service",
108
 
                    requireauth = False,
109
 
                    hashelp = False)
110
 
 
111
52
app_userservice = App(dir = "userservice",
112
53
                    name = "User Management Service",
113
54
                    requireauth = False,
114
55
                    hashelp = False)
115
56
 
116
 
app_subjects = App(dir = "subjects",
117
 
                    name = "Subjects",
118
 
                    desc = "Announcements and information about the subjects "
119
 
                           "you are enrolled in.",
120
 
                    icon = "subjects.png",
121
 
                    requireauth = False,
122
 
                    hashelp = False)
123
 
 
124
57
# Mapping URL names to apps
125
58
 
126
59
app_url = {
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,
133
 
    "+help" : app_help,
134
 
    "forum" : app_forum,
135
 
    "tos" : app_tos,
136
63
    "userservice" : app_userservice,
137
 
    "subjects" : app_subjects,
138
64
}
139
 
if enable_debuginfo:
140
 
    app_url["debuginfo"] = app_debuginfo
141
 
 
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.
145
 
 
146
 
apps_in_tabs = ["files", "tutorial", "console",
147
 
                "forum", "subjects", "+help"]