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

« back to all changes in this revision

Viewing changes to ivle/config/ivle-spec.conf

  • Committer: David Coles
  • Date: 2010-08-30 03:26:13 UTC
  • Revision ID: coles.david@gmail.com-20100830032613-d14vng0jkelniu3l
python-console: Fix globals broken with new JSON library.

simplejson always returns unicode strings. cJSON would return ordinary strings 
if possible. cPickle.loads() only accepts strings. At present we use pickle 
version 0 so they should all works as ASCII strings. Higher versions of pickle 
are not plain ASCII and are likely to break this and so this should be fixed 
at some point.

Also replaced unconditional exception with one that catches Pickle errors. Not 
sure the best way to report failures of these functions.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
# IVLE - Informatics Virtual Learning Environment
 
2
# Copyright (C) 2007-2009 The University of Melbourne
 
3
#
 
4
# This program is free software; you can redistribute it and/or modify
 
5
# it under the terms of the GNU General Public License as published by
 
6
# the Free Software Foundation; either version 2 of the License, or
 
7
# (at your option) any later version.
 
8
#
 
9
# This program is distributed in the hope that it will be useful,
 
10
# but WITHOUT ANY WARRANTY; without even the implied warranty of
 
11
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 
12
# GNU General Public License for more details.
 
13
#
 
14
# You should have received a copy of the GNU General Public License
 
15
# along with this program; if not, write to the Free Software
 
16
# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
 
17
 
 
18
# Author: Matt Giuca, Will Grant
 
19
#
 
20
# This file defines the configuration spec for the ivle.conf file.
 
21
# This is used by configobj to validate and convert configuration options.
 
22
# Detailed comments can be found in the generated config files.
 
23
 
 
24
[urls]
 
25
root = string(default="/")
 
26
public_host = string
 
27
svn_addr = string
 
28
 
 
29
[paths]
 
30
prefix = string(default="/usr/local")
 
31
data = string(default="/var/lib/ivle")
 
32
logs = string(default="/var/log/ivle")
 
33
 
 
34
share = string(default="${prefix}/share/ivle")
 
35
lib = string(default="${prefix}/lib/ivle")
 
36
 
 
37
[[jails]]
 
38
mounts = string(default="${data}/jailmounts")
 
39
src = string(default="${data}/jails")
 
40
template = string(default="${src}/__base__")
 
41
template_build = string(default="${src}/__base_build__")
 
42
 
 
43
[[svn]]
 
44
base = string(default="${data}/svn")
 
45
conf = string(default="${base}/svn.conf")
 
46
group_conf = string(default="${base}/svn-group.conf")
 
47
repo_path = string(default="${base}/repositories")
 
48
auth_ivle = string(default="${base}/ivle.auth")
 
49
 
 
50
[policy]
 
51
tutors_can_enrol_students = boolean(default=False)
 
52
tutors_can_edit_worksheets = boolean(default=True)
 
53
tutors_can_admin_groups = boolean(default=True)
 
54
 
 
55
[media]
 
56
version = string(default=None)
 
57
 
 
58
[[externals]]
 
59
jquery = string(default="/usr/share/javascript/jquery")
 
60
codemirror = string(default="/usr/share/javascript/codemirror")
 
61
 
 
62
[database]
 
63
host = string(default="localhost")
 
64
port = integer(default=5432)
 
65
name = string(default="ivle")
 
66
username = string
 
67
password = string
 
68
 
 
69
[auth]
 
70
modules = string_list(default=list())
 
71
ldap_url = string(default=None)
 
72
ldap_format_string = string(default=None)
 
73
subject_pulldown_modules = string_list(default=list())
 
74
 
 
75
[usrmgt]
 
76
host = string(default="localhost")
 
77
port = integer(default=2178)
 
78
magic = string
 
79
 
 
80
[jail]
 
81
devmode = boolean(default=False)
 
82
suite = string(default="hardy")
 
83
mirror = string(default="http://archive.ubuntu.com/ubuntu")
 
84
extra_sources = string_list(default=list())
 
85
extra_packages = string_list(default=list('python-configobj', 'python-simplejson', 'python-svn'))
 
86
extra_keys = string(default=None) # Cannot have triple-quoted list members.
 
87
 
 
88
# user_info is for jail-specific settings for the user who owns the jail
 
89
# (XXX This should be in a user-specific place but since we're worried a user
 
90
# may delete his/her .conf file, we put it here for now).
 
91
[user_info]
 
92
login = string(default=None)
 
93
svn_pass = string(default=None)