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

« back to all changes in this revision

Viewing changes to src/conf/apps.py

  • Committer: mattgiuca
  • Date: 2007-12-20 03:14:17 UTC
  • Revision ID: svn-v3-trunk0:2b9c9e99-6f39-0410-b283-7f802c844ae2:trunk:93
New directory hierarchy.
Renamed src to www.
Added console, trampoline (currently empty).

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
# IVLE Configuration File
2
 
# conf/apps.py
3
 
# Configuration of plugin applications for IVLE
4
 
# These should not need to be modified by admins unless new applications are
5
 
# plugged in.
6
 
 
7
 
# Allow App objects
8
 
class App:
9
 
    def __init__(self, dir, name, requireauth = True, hashelp = False):
10
 
        self.dir = dir
11
 
        self.name = name
12
 
        self.requireauth = requireauth
13
 
        self.hashelp = hashelp
14
 
    def __repr__(self):
15
 
        return ("App(dir=" + repr(self.dir) + ", name=" + repr(self.name) +
16
 
            ", requireauth=" + repr(self.requireauth) + ", hashelp="
17
 
            + repr(self.hashelp) + ")")
18
 
 
19
 
# Application definitions
20
 
 
21
 
app_dummy =     App(dir = "dummy",
22
 
                    name = "My Dummy App",
23
 
                    requireauth = True,
24
 
                    hashelp = True)
25
 
 
26
 
app_server =    App(dir = "server",
27
 
                    name = "Server",
28
 
                    requireauth = False,
29
 
                    hashelp = False)
30
 
 
31
 
app_download =  App(dir = "download",
32
 
                    name = "Download",
33
 
                    requireauth = True,
34
 
                    hashelp = False)
35
 
 
36
 
app_help =      App(dir = "help",
37
 
                    name = "Help",
38
 
                    requireauth = True,
39
 
                    hashelp = False)
40
 
 
41
 
app_debuginfo = App(dir = "debuginfo",
42
 
                    name = "Debug Information",
43
 
                    requireauth = True,
44
 
                    hashelp = False)
45
 
 
46
 
# Mapping URL names to apps
47
 
 
48
 
app_url = {
49
 
    "dummy" : app_dummy,
50
 
    "serve" : app_server,
51
 
    "download" : app_download,
52
 
    "help" : app_help,
53
 
    "debuginfo" : app_debuginfo,
54
 
}
55
 
 
56
 
# List of apps that go in the tabs at the top
57
 
# (The others are hidden unless they are linked to)
58
 
# Note: The values in this list are the URL names as seen in app_url.
59
 
 
60
 
apps_in_tabs = ["dummy", "help"]