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

« back to all changes in this revision

Viewing changes to ivle/conf/apps.py

Minor updates to the sql for the userdb

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
# Notes:
 
9
# icon is a string of a file basename. The icon files are found in
 
10
# app_icon_dir, defined below.
 
11
class App:
 
12
    def __init__(self, dir, name, desc=None, icon = None,
 
13
        useconsole = False, requireauth = True, hashelp = False):
 
14
        self.dir = dir
 
15
        self.name = name
 
16
        self.desc = desc
 
17
        self.icon = icon
 
18
        self.useconsole = useconsole
 
19
        self.requireauth = requireauth
 
20
        self.hashelp = hashelp
 
21
    def __repr__(self):
 
22
        return ("App(dir=%s, name=%s, desc=%s, icon=%s, requireauth=%s, "
 
23
                "hashelp=%s)" % (repr(self.dir), repr(self.name),
 
24
                repr(self.desc), repr(self.icon), repr(self.requireauth),
 
25
                repr(self.hashelp)))
 
26
 
 
27
# Which application to use for "public host" URLs.
 
28
# (See conf.py)
 
29
public_app = "serve"
 
30
 
 
31
# Application definitions
 
32
 
 
33
app_fileservice = App(dir = "fileservice",
 
34
                    name = "File Service (AJAX server)",
 
35
                    requireauth = True,
 
36
                    hashelp = False)
 
37
 
 
38
# Mapping URL names to apps
 
39
 
 
40
app_url = {
 
41
    "fileservice" : app_fileservice,
 
42
}