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

« back to all changes in this revision

Viewing changes to lib/conf/apps.py

  • Committer: mattgiuca
  • Date: 2008-03-05 04:34:27 UTC
  • Revision ID: svn-v3-trunk0:2b9c9e99-6f39-0410-b283-7f802c844ae2:trunk:647
phpBB3 - Added svn:ignore on autoconfigged file, config.php.

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
 
        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
18
        self.requireauth = requireauth
23
19
        self.hashelp = hashelp
24
20
    def __repr__(self):
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)))
 
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) + ")")
29
25
 
30
26
# Directory where app icons are stored, relative to the IVLE root.
31
27
app_icon_dir = "media/images/apps"
45
41
 
46
42
app_browser =   App(dir = "browser",
47
43
                    name = "Files",
48
 
                    desc = "Gives you access to all of your files and lets "
49
 
                           "you download, upload, edit and run them.",
50
44
                    icon = "browser.png",
51
45
                    requireauth = True,
52
46
                    hashelp = True)
58
52
 
59
53
app_console =     App(dir = "console",
60
54
                    name = "Console",
61
 
                    desc = "A Python console where you can try out code "
62
 
                           "without having to save and run it.",
63
55
                    icon = "console.png",
64
56
                    requireauth = True,
65
57
                    hashelp = True)
71
63
 
72
64
app_tutorial =     App(dir = "tutorial",
73
65
                    name = "Worksheets",
74
 
                    desc = "Online tutorials and exercises for lab work.",
75
66
                    icon = "tutorial.png",
76
67
                    requireauth = True,
77
68
                    hashelp = True)
93
84
 
94
85
app_help =      App(dir = "help",
95
86
                    name = "Help",
96
 
                    desc = "IVLE help pages",
97
87
                    icon = "help.png",
98
88
                    requireauth = True,
99
89
                    hashelp = False)
105
95
 
106
96
app_forum = App(dir = "forum",
107
97
                    name = "Forum",
108
 
                    desc = "Discussion boards for material relating to "
109
 
                           "Informatics, IVLE and Python.",
110
98
                    icon = "forum.png",
111
99
                    requireauth = True,
112
100
                    hashelp = False)
134
122
                    hashelp = False)
135
123
 
136
124
app_subjects = App(dir = "subjects",
137
 
                    name = "Subjects",
138
 
                    desc = "Announcements and information about the subjects "
139
 
                           "you are enrolled in.",
140
 
                    icon = "subjects.png",
 
125
                    name = "Subject Homepages",
141
126
                    requireauth = False,
142
127
                    hashelp = False)
143
128
 
144
129
app_home = App(dir = "home",
145
130
                    name = "Home",
146
 
                    desc = "IVLE home page",
147
 
                    icon = "home.png",
148
131
                    requireauth = True,
149
132
                    hashelp = False)
150
133
 
175
158
# (The others are hidden unless they are linked to)
176
159
# Note: The values in this list are the URL names as seen in app_url.
177
160
 
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"]
 
161
apps_in_tabs = ["files", "tutorial", "console", "forum", "help"]