~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-14 04:01:08 UTC
  • Revision ID: svn-v3-trunk0:2b9c9e99-6f39-0410-b283-7f802c844ae2:trunk:57
request.py: sendfile now writes the headers out first (correctly).

Show diffs side-by-side

added added

removed removed

Lines of Context:
6
6
 
7
7
# Allow App objects
8
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) + ")")
 
9
    pass
18
10
 
19
11
# Application definitions
20
12
 
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)
 
13
app_dummy = App()
 
14
app_dummy.dir = "dummy"
 
15
app_dummy.name = "My Dummy App"
 
16
app_dummy.requireauth = True
 
17
app_dummy.hashelp = True
 
18
 
 
19
app_server = App()
 
20
app_server.dir = "server"
 
21
app_server.name = "Server"
 
22
app_server.requireauth = False
 
23
app_server.hashelp = False
 
24
 
 
25
app_help = App()
 
26
app_help.dir = "help"
 
27
app_help.name = "Help"
 
28
app_help.requireauth = True
 
29
app_help.hashelp = False
45
30
 
46
31
# Mapping URL names to apps
47
32
 
48
33
app_url = {
49
34
    "dummy" : app_dummy,
50
35
    "serve" : app_server,
51
 
    "download" : app_download,
52
36
    "help" : app_help,
53
 
    "debuginfo" : app_debuginfo,
54
37
}
55
38
 
56
39
# List of apps that go in the tabs at the top