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

« back to all changes in this revision

Viewing changes to www/conf/apps.py

  • Committer: mattgiuca
  • Date: 2008-02-05 01:41:15 UTC
  • Revision ID: svn-v3-trunk0:2b9c9e99-6f39-0410-b283-7f802c844ae2:trunk:409
Moved www/conf and www/common to a new directory lib. This separates the "web"
part of IVLE from what is becoming less web oriented (at least from Apache's
standpoint).
Modified setup.py to install this lib directory correctly and write conf in
the right place. Also adds the lib directory to ivle.pth.

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
 
# Note: icon is a string of a file basename. The icon files are found in
9
 
# app_icon_dir, defined below.
10
 
class App:
11
 
    def __init__(self, dir, name, icon = None, requireauth = True,
12
 
        hashelp = False):
13
 
        self.dir = dir
14
 
        self.name = name
15
 
        self.icon = icon
16
 
        self.requireauth = requireauth
17
 
        self.hashelp = hashelp
18
 
    def __repr__(self):
19
 
        return ("App(dir=" + repr(self.dir) + ", name=" + repr(self.name) +
20
 
            ", icon=" + repr(self.icon) +
21
 
            ", requireauth=" + repr(self.requireauth) + ", hashelp="
22
 
            + repr(self.hashelp) + ")")
23
 
 
24
 
# Directory where app icons are stored, relative to the IVLE root.
25
 
app_icon_dir = "media/images/apps"
26
 
# Small version of icons (16x16, for favicon)
27
 
app_icon_dir_small = "media/images/apps/small"
28
 
 
29
 
# Which application to load by default (if the user navigates to the top level
30
 
# of the site). This is the app's URL name.
31
 
# Note that if this app requires authentication, the user will first be
32
 
# presented with the login screen.
33
 
default_app = "files"
34
 
 
35
 
# Application definitions
36
 
 
37
 
app_browser =   App(dir = "browser",
38
 
                    name = "File Browser",
39
 
                    icon = "browser.png",
40
 
                    requireauth = True,
41
 
                    hashelp = True)
42
 
 
43
 
app_editor =   App(dir = "editor",
44
 
                    name = "Text Editor",
45
 
                    icon = "editor.png",
46
 
                    requireauth = True,
47
 
                    hashelp = True)
48
 
 
49
 
app_fileservice = App(dir = "fileservice",
50
 
                    name = "File Service (AJAX server)",
51
 
                    requireauth = True,
52
 
                    hashelp = False)
53
 
 
54
 
app_console =     App(dir = "console",
55
 
                    name = "Console",
56
 
                    icon = "console.png",
57
 
                    requireauth = True,
58
 
                    hashelp = True)
59
 
 
60
 
app_consoleservice = App(dir = "consoleservice",
61
 
                    name = "Console Service",
62
 
                    requireauth = True,
63
 
                    hashelp = False)
64
 
 
65
 
app_tutorial =     App(dir = "tutorial",
66
 
                    name = "Tutorial",
67
 
                    icon = "tutorial.png",
68
 
                    requireauth = True,
69
 
                    hashelp = True)
70
 
 
71
 
app_server =    App(dir = "server",
72
 
                    name = "Server",
73
 
                    requireauth = False,
74
 
                    hashelp = False)
75
 
 
76
 
app_download =  App(dir = "download",
77
 
                    name = "Download",
78
 
                    requireauth = True,
79
 
                    hashelp = False)
80
 
 
81
 
app_help =      App(dir = "help",
82
 
                    name = "Help",
83
 
                    icon = "help.png",
84
 
                    requireauth = True,
85
 
                    hashelp = False)
86
 
 
87
 
app_debuginfo = App(dir = "debuginfo",
88
 
                    name = "Debug Information",
89
 
                    requireauth = False,
90
 
                    hashelp = False)
91
 
 
92
 
# Mapping URL names to apps
93
 
 
94
 
app_url = {
95
 
    "files" : app_browser,
96
 
    "edit" : app_editor,
97
 
    "fileservice" : app_fileservice,
98
 
    "console" : app_console,
99
 
    "consoleservice" : app_consoleservice,
100
 
    "tutorial" : app_tutorial,
101
 
    "serve" : app_server,
102
 
    "download" : app_download,
103
 
    "help" : app_help,
104
 
    #"debuginfo" : app_debuginfo,
105
 
}
106
 
 
107
 
# List of apps that go in the tabs at the top
108
 
# (The others are hidden unless they are linked to)
109
 
# Note: The values in this list are the URL names as seen in app_url.
110
 
 
111
 
apps_in_tabs = ["files", "edit", "console", "tutorial", "help"]