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

« back to all changes in this revision

Viewing changes to lib/conf/apps.py

  • Committer: dcoles
  • Date: 2008-07-14 01:08:59 UTC
  • Revision ID: svn-v3-trunk0:2b9c9e99-6f39-0410-b283-7f802c844ae2:trunk:850
Console: Moved console up into dispatch. Now any application can, in theory, 
have it's own console just by adding 'useconsole = True' to the app settings.
Note: There are some cases where this may not be a good idea - ie. The full 
console app, public applications, etc. Removed the old single instances of 
console and made apps init functions use the new scripts_init section.

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):
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