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

« back to all changes in this revision

Viewing changes to ivle/conf/conf.py

  • Committer: William Grant
  • Date: 2009-06-29 01:55:55 UTC
  • mto: This revision was merged to the branch mainline in revision 1322.
  • Revision ID: grantw@unimelb.edu.au-20090629015555-49xxv0piiieunx8e
Add docs on configuring Apache.

Show diffs side-by-side

added added

removed removed

Lines of Context:
32
32
import ivle.config
33
33
 
34
34
try:
35
 
    conf = ivle.config.Config()
 
35
    conf = ivle.config.Config(plugins=False)
36
36
except ivle.config.ConfigError, e:
37
37
    raise ImportError(str(e))
38
38
 
43
43
    'prefix': 'paths/prefix',
44
44
    'data_path': 'paths/data',
45
45
    'log_path': 'paths/logs',
46
 
    'python_site_packages_override': 'paths/site_packages',
47
46
    'public_host': 'urls/public_host',
48
 
    'allowed_uids': 'os/allowed_uids',
49
47
    'db_host': 'database/host',
50
48
    'db_port': 'database/port',
51
49
    'db_dbname': 'database/name',
52
 
    'db_forumdbname': 'plugins/forum/dbname',
53
50
    'db_user': 'database/username',
54
51
    'db_password': 'database/password',
55
52
    'auth_modules': 'auth/modules',
60
57
    'usrmgt_host': 'usrmgt/host',
61
58
    'usrmgt_port': 'usrmgt/port',
62
59
    'usrmgt_magic': 'usrmgt/magic',
63
 
    'forum_secret': 'plugins/forum/secret',
 
60
 
 
61
    # These two are only relevant inside the jail.
 
62
    'login': 'user_info/login',
 
63
    'svn_pass': 'user_info/svn_pass',
64
64
}
65
65
 
66
66
for legacyopt, newopt_path in CONFIG_OPTIONS.iteritems():
79
79
subject_pulldown_modules = ','.join(subject_pulldown_modules)
80
80
auth_modules = ','.join(auth_modules)
81
81
 
82
 
# XXX Convert db_port and usrmgt_port to int.
83
 
# Because.
84
 
db_port = int(db_port)
85
 
usrmgt_port = int(usrmgt_port)
86
 
 
87
82
# Additional auto-generated config options
88
83
 
89
84
# Path where architecture-dependent data (including non-user-executable
96
91
# Path where user-executable binaries are installed.
97
92
bin_path = os.path.join(prefix, 'bin')
98
93
 
99
 
# 'site-packages' directory in Python, where Python libraries are to be
100
 
# installed.
101
 
if python_site_packages_override is None:
102
 
    PYTHON_VERSION = sys.version[0:3]   # eg. "2.5"
103
 
    python_site_packages = os.path.join(prefix,
104
 
                               'lib/python%s/site-packages' % PYTHON_VERSION)
105
 
else:
106
 
    python_site_packages = python_site_packages_override
107
 
 
108
94
# In the local file system, where the student/user jails will be mounted.
109
95
# Only a single copy of the jail's system components will be stored here -
110
96
# all user jails will be virtually mounted here.
 
97
# XXX: Some jail code calls ivle.studpath.url_to_{local,jailpaths}, both
 
98
#      of which use jail_base. Note that they don't use the bits of the
 
99
#      return value that depend on jail_base, so it can be any string inside
 
100
#      the jail. The value computed here may be meaningless inside the jail,
 
101
#      but that's OK for now.
111
102
jail_base = os.path.join(data_path, 'jailmounts')
112
103
 
113
104
# In the local file system, where are the student/user file spaces located.
126
117
# (The 'subjects' and 'exercises' directories).
127
118
content_path = os.path.join(data_path, 'content')
128
119
 
129
 
# In the local file system, where are the per-subject file spaces located.
130
 
# The individual subject directories are expected to be located immediately
131
 
# in subdirectories of this location.
132
 
subjects_base = os.path.join(content_path, 'subjects')
133
 
 
134
 
# In the local file system, where are the subject-independent exercise sheet
135
 
# file spaces located.
136
 
exercises_base = os.path.join(content_path, 'exercises')
137
 
 
138
120
# In the local file system, where the system notices are stored (such as terms
139
121
# of service and MOTD).
140
122
notices_path = os.path.join(data_path, 'notices')