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

« back to all changes in this revision

Viewing changes to lib/conf/apps.py

  • Committer: wagrant
  • Date: 2008-08-19 12:49:58 UTC
  • Revision ID: svn-v3-trunk0:2b9c9e99-6f39-0410-b283-7f802c844ae2:trunk:1031
Example worksheets: Fix the element names in worksheet 1 to be actually
                    correct. Also fix the first exercise so it too
                    functions properly.

Show diffs side-by-side

added added

removed removed

Lines of Context:
14
14
# app_icon_dir, defined below.
15
15
class App:
16
16
    def __init__(self, dir, name, desc=None, icon = None,
17
 
        requireauth = True, hashelp = False):
 
17
        useconsole = False, requireauth = True, hashelp = False):
18
18
        self.dir = dir
19
19
        self.name = name
20
20
        self.desc = desc
21
21
        self.icon = icon
 
22
        self.useconsole = useconsole
22
23
        self.requireauth = requireauth
23
24
        self.hashelp = hashelp
24
25
    def __repr__(self):
36
37
# of the site). This is the app's URL name.
37
38
# Note that if this app requires authentication, the user will first be
38
39
# presented with the login screen.
39
 
default_app = "home"
 
40
default_app = "files"
40
41
# Which application to use for "public host" URLs.
41
42
# (See conf.py)
42
43
public_app = "serve"
48
49
                    desc = "Gives you access to all of your files and lets "
49
50
                           "you download, upload, edit and run them.",
50
51
                    icon = "browser.png",
 
52
                    useconsole = True,
51
53
                    requireauth = True,
52
54
                    hashelp = True)
53
55
 
61
63
                    desc = "A Python console where you can try out code "
62
64
                           "without having to save and run it.",
63
65
                    icon = "console.png",
 
66
                    useconsole = False, # We use a full console in this app
64
67
                    requireauth = True,
65
68
                    hashelp = True)
66
69
 
73
76
                    name = "Worksheets",
74
77
                    desc = "Online tutorials and exercises for lab work.",
75
78
                    icon = "tutorial.png",
 
79
                    useconsole = True,
76
80
                    requireauth = True,
77
81
                    hashelp = True)
78
82
 
122
126
                    requireauth = True,
123
127
                    hashelp = True)
124
128
 
 
129
app_groups = App(dir = "groups",
 
130
                    name = "Group Management",
 
131
                    icon = "groups.png",
 
132
                    requireauth = True,
 
133
                    hashelp = True)
 
134
 
125
135
app_userservice = App(dir = "userservice",
126
136
                    name = "User Management Service",
127
137
                    requireauth = False,
133
143
                    requireauth = True,
134
144
                    hashelp = False)
135
145
 
 
146
app_svnlog = App(dir = "svnlog",
 
147
                    name = "Subversion Log",
 
148
                    requireauth = True,
 
149
                    hashelp = False)
 
150
 
136
151
app_subjects = App(dir = "subjects",
137
152
                    name = "Subjects",
138
153
                    desc = "Announcements and information about the subjects "
163
178
    "forum" : app_forum,
164
179
    "tos" : app_tos,
165
180
    "settings" : app_settings,
 
181
    "groups" : app_groups,
166
182
    "userservice" : app_userservice,
167
183
    "diff" : app_diff,
 
184
    "svnlog" : app_svnlog,
168
185
    "subjects" : app_subjects,
169
186
    "home" : app_home,
170
187
}
175
192
# (The others are hidden unless they are linked to)
176
193
# Note: The values in this list are the URL names as seen in app_url.
177
194
 
178
 
apps_in_tabs = ["home", "subjects", "files", "tutorial", "console",
179
 
                "forum", "help"]
 
195
apps_in_tabs = ["files", "tutorial", "console",
 
196
                "forum", "subjects", "help"]
180
197
 
181
198
# List of apps that go in the list on the home page
182
199
apps_on_home_page = ["subjects", "files", "tutorial", "console", "forum"]