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

« back to all changes in this revision

Viewing changes to lib/conf/apps.py

  • Committer: mattgiuca
  • Date: 2008-03-15 09:00:15 UTC
  • Revision ID: svn-v3-trunk0:2b9c9e99-6f39-0410-b283-7f802c844ae2:trunk:703
tutorial: (Python + Javascript)
    Added JS function "set_saved_status", which can activate and deactivate
    the save button.
    Modifying the text field now creates a Save timer which takes 10 seconds
    to elapse, then auto-saves the field.
    The save button is only enabled if the text has been modified since
    saving.

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
 
        useconsole = False, requireauth = True, hashelp = False):
 
17
        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
23
22
        self.requireauth = requireauth
24
23
        self.hashelp = hashelp
25
24
    def __repr__(self):
49
48
                    desc = "Gives you access to all of your files and lets "
50
49
                           "you download, upload, edit and run them.",
51
50
                    icon = "browser.png",
52
 
                    useconsole = True,
53
51
                    requireauth = True,
54
52
                    hashelp = True)
55
53
 
63
61
                    desc = "A Python console where you can try out code "
64
62
                           "without having to save and run it.",
65
63
                    icon = "console.png",
66
 
                    useconsole = False, # We use a full console in this app
67
64
                    requireauth = True,
68
65
                    hashelp = True)
69
66
 
76
73
                    name = "Worksheets",
77
74
                    desc = "Online tutorials and exercises for lab work.",
78
75
                    icon = "tutorial.png",
79
 
                    useconsole = True,
80
76
                    requireauth = True,
81
77
                    hashelp = True)
82
78
 
126
122
                    requireauth = True,
127
123
                    hashelp = True)
128
124
 
129
 
app_groups = App(dir = "groups",
130
 
                    name = "Group Management",
131
 
                    icon = "groups.png",
132
 
                    requireauth = True,
133
 
                    hashelp = True)
134
 
 
135
125
app_userservice = App(dir = "userservice",
136
126
                    name = "User Management Service",
137
127
                    requireauth = False,
143
133
                    requireauth = True,
144
134
                    hashelp = False)
145
135
 
146
 
app_svnlog = App(dir = "svnlog",
147
 
                    name = "Subversion Log",
148
 
                    requireauth = True,
149
 
                    hashelp = False)
150
 
 
151
136
app_subjects = App(dir = "subjects",
152
137
                    name = "Subjects",
153
138
                    desc = "Announcements and information about the subjects "
178
163
    "forum" : app_forum,
179
164
    "tos" : app_tos,
180
165
    "settings" : app_settings,
181
 
    "groups" : app_groups,
182
166
    "userservice" : app_userservice,
183
167
    "diff" : app_diff,
184
 
    "svnlog" : app_svnlog,
185
168
    "subjects" : app_subjects,
186
169
    "home" : app_home,
187
170
}