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

« back to all changes in this revision

Viewing changes to lib/conf/apps.py

  • Committer: mattgiuca
  • Date: 2008-02-29 01:18:22 UTC
  • Revision ID: svn-v3-trunk0:2b9c9e99-6f39-0410-b283-7f802c844ae2:trunk:621
Added 2 new apps: home and subjects. Both fairly incomplete, just a basic
    skeleton.
    "home" is the new default app, replacing "files".
    (It has a link to files).

Show diffs side-by-side

added added

removed removed

Lines of Context:
7
7
enable_debuginfo = False
8
8
 
9
9
# Allow App objects
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
 
10
# Note: icon is a string of a file basename. The icon files are found in
14
11
# app_icon_dir, defined below.
15
12
class App:
16
 
    def __init__(self, dir, name, desc=None, icon = None,
17
 
        useconsole = False, requireauth = True, hashelp = False):
 
13
    def __init__(self, dir, name, icon = None, requireauth = True,
 
14
        hashelp = False):
18
15
        self.dir = dir
19
16
        self.name = name
20
 
        self.desc = desc
21
17
        self.icon = icon
22
 
        self.useconsole = useconsole
23
18
        self.requireauth = requireauth
24
19
        self.hashelp = hashelp
25
20
    def __repr__(self):
26
 
        return ("App(dir=%s, name=%s, desc=%s, icon=%s, requireauth=%s, "
27
 
                "hashelp=%s)" % (repr(self.dir), repr(self.name),
28
 
                repr(self.desc), repr(self.icon), repr(self.requireauth),
29
 
                repr(self.hashelp)))
 
21
        return ("App(dir=" + repr(self.dir) + ", name=" + repr(self.name) +
 
22
            ", icon=" + repr(self.icon) +
 
23
            ", requireauth=" + repr(self.requireauth) + ", hashelp="
 
24
            + repr(self.hashelp) + ")")
30
25
 
31
26
# Directory where app icons are stored, relative to the IVLE root.
32
27
app_icon_dir = "media/images/apps"
45
40
# Application definitions
46
41
 
47
42
app_browser =   App(dir = "browser",
48
 
                    name = "Files",
49
 
                    desc = "Gives you access to all of your files and lets "
50
 
                           "you download, upload, edit and run them.",
 
43
                    name = "File Browser",
51
44
                    icon = "browser.png",
52
 
                    useconsole = True,
 
45
                    requireauth = True,
 
46
                    hashelp = True)
 
47
 
 
48
app_editor =   App(dir = "editor",
 
49
                    name = "Text Editor",
 
50
                    icon = "editor.png",
53
51
                    requireauth = True,
54
52
                    hashelp = True)
55
53
 
60
58
 
61
59
app_console =     App(dir = "console",
62
60
                    name = "Console",
63
 
                    desc = "A Python console where you can try out code "
64
 
                           "without having to save and run it.",
65
61
                    icon = "console.png",
66
 
                    useconsole = False, # We use a full console in this app
67
62
                    requireauth = True,
68
63
                    hashelp = True)
69
64
 
73
68
                    hashelp = False)
74
69
 
75
70
app_tutorial =     App(dir = "tutorial",
76
 
                    name = "Worksheets",
77
 
                    desc = "Online tutorials and exercises for lab work.",
 
71
                    name = "Tutorial",
78
72
                    icon = "tutorial.png",
79
 
                    useconsole = True,
80
73
                    requireauth = True,
81
74
                    hashelp = True)
82
75
 
97
90
 
98
91
app_help =      App(dir = "help",
99
92
                    name = "Help",
100
 
                    desc = "IVLE help pages",
101
93
                    icon = "help.png",
102
94
                    requireauth = True,
103
95
                    hashelp = False)
109
101
 
110
102
app_forum = App(dir = "forum",
111
103
                    name = "Forum",
112
 
                    desc = "Discussion boards for material relating to "
113
 
                           "Informatics, IVLE and Python.",
114
104
                    icon = "forum.png",
115
105
                    requireauth = True,
116
106
                    hashelp = False)
126
116
                    requireauth = True,
127
117
                    hashelp = True)
128
118
 
129
 
app_groups = App(dir = "groups",
130
 
                    name = "Group Management",
131
 
                    icon = "groups.png",
132
 
                    requireauth = True,
133
 
                    hashelp = True)
134
 
 
135
119
app_userservice = App(dir = "userservice",
136
120
                    name = "User Management Service",
137
121
                    requireauth = False,
143
127
                    requireauth = True,
144
128
                    hashelp = False)
145
129
 
146
 
app_svnlog = App(dir = "svnlog",
147
 
                    name = "Subversion Log",
148
 
                    requireauth = True,
149
 
                    hashelp = False)
150
 
 
151
130
app_subjects = App(dir = "subjects",
152
 
                    name = "Subjects",
153
 
                    desc = "Announcements and information about the subjects "
154
 
                           "you are enrolled in.",
155
 
                    icon = "subjects.png",
 
131
                    name = "Subject Homepages",
156
132
                    requireauth = False,
157
133
                    hashelp = False)
158
134
 
159
135
app_home = App(dir = "home",
160
136
                    name = "Home",
161
 
                    desc = "IVLE home page",
162
 
                    icon = "home.png",
163
137
                    requireauth = True,
164
138
                    hashelp = False)
165
139
 
167
141
 
168
142
app_url = {
169
143
    "files" : app_browser,
 
144
    "edit" : app_editor,
170
145
    "fileservice" : app_fileservice,
171
146
    "console" : app_console,
172
147
    "consoleservice" : app_consoleservice,
178
153
    "forum" : app_forum,
179
154
    "tos" : app_tos,
180
155
    "settings" : app_settings,
181
 
    "groups" : app_groups,
182
156
    "userservice" : app_userservice,
183
157
    "diff" : app_diff,
184
 
    "svnlog" : app_svnlog,
185
158
    "subjects" : app_subjects,
186
159
    "home" : app_home,
187
160
}
192
165
# (The others are hidden unless they are linked to)
193
166
# Note: The values in this list are the URL names as seen in app_url.
194
167
 
195
 
apps_in_tabs = ["home", "subjects", "files", "tutorial", "console",
196
 
                "forum", "help"]
197
 
 
198
 
# List of apps that go in the list on the home page
199
 
apps_on_home_page = ["subjects", "files", "tutorial", "console", "forum"]
 
168
apps_in_tabs = ["files", "edit", "console", "tutorial", "forum", "help"]