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

« back to all changes in this revision

Viewing changes to ivle/conf/apps.py

  • Committer: William Grant
  • Date: 2009-02-17 05:06:35 UTC
  • mto: (1099.1.143 new-dispatch)
  • mto: This revision was merged to the branch mainline in revision 1100.
  • Revision ID: grantw@unimelb.edu.au-20090217050635-9u85hgrreg9flp2h
Remove interpretservice, and clean up ivle.webapp.filesystem.serve.

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
app_server =    App(dir = "server",
 
39
                    name = "Server",
 
40
                    requireauth = True,
 
41
                    hashelp = False)
 
42
 
 
43
app_download =  App(dir = "download",
 
44
                    name = "Download",
 
45
                    requireauth = True,
 
46
                    hashelp = False)
 
47
 
 
48
# Mapping URL names to apps
 
49
 
 
50
app_url = {
 
51
    "fileservice" : app_fileservice,
 
52
    "serve" : app_server,
 
53
    "download" : app_download,
 
54
}