~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-16 22:58:42 UTC
  • Revision ID: svn-v3-trunk0:2b9c9e99-6f39-0410-b283-7f802c844ae2:trunk:66
conf/apps.py: Added a proper constructor for App and all applications use it.

Show diffs side-by-side

added added

removed removed

Lines of Context:
6
6
 
7
7
# Allow App objects
8
8
class App:
9
 
    pass
 
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
10
14
 
11
15
# Application definitions
12
16
 
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
 
17
app_dummy =     App(dir = "dummy",
 
18
                    name = "My Dummy App",
 
19
                    requireauth = True,
 
20
                    hashelp = True)
 
21
 
 
22
app_server =    App(dir = "server",
 
23
                    name = "Server",
 
24
                    requireauth = False,
 
25
                    hashelp = False)
 
26
 
 
27
app_help =      App(dir = "help",
 
28
                    name = "Help",
 
29
                    requireauth = True,
 
30
                    hashelp = False)
30
31
 
31
32
# Mapping URL names to apps
32
33