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

« back to all changes in this revision

Viewing changes to ivle/conf/conf.py

  • Committer: Matt Giuca
  • Date: 2010-07-28 06:09:00 UTC
  • Revision ID: matt.giuca@gmail.com-20100728060900-6a0lcuexcv1juh5r
ivle/webapp/submit/submit.html: Rewrote error message when an offering could not be found to submit to. This can have one of several causes, and the old error assumed it was because you weren't in a subject dir. Now enumerates the possible reasons. (LP: #526853)

Show diffs side-by-side

added added

removed removed

Lines of Context:
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
47
    'db_host': 'database/host',
49
48
    'db_port': 'database/port',
58
57
    'usrmgt_host': 'usrmgt/host',
59
58
    'usrmgt_port': 'usrmgt/port',
60
59
    'usrmgt_magic': 'usrmgt/magic',
 
60
 
 
61
    # These two are only relevant inside the jail.
 
62
    'login': 'user_info/login',
 
63
    'svn_pass': 'user_info/svn_pass',
61
64
}
62
65
 
63
66
for legacyopt, newopt_path in CONFIG_OPTIONS.iteritems():
88
91
# Path where user-executable binaries are installed.
89
92
bin_path = os.path.join(prefix, 'bin')
90
93
 
91
 
# 'site-packages' directory in Python, where Python libraries are to be
92
 
# installed.
93
 
if python_site_packages_override is None:
94
 
    PYTHON_VERSION = sys.version[0:3]   # eg. "2.5"
95
 
    python_site_packages = os.path.join(prefix,
96
 
                               'lib/python%s/site-packages' % PYTHON_VERSION)
97
 
else:
98
 
    python_site_packages = python_site_packages_override
99
 
 
100
94
# In the local file system, where the student/user jails will be mounted.
101
95
# Only a single copy of the jail's system components will be stored here -
102
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.
103
102
jail_base = os.path.join(data_path, 'jailmounts')
104
103
 
105
104
# In the local file system, where are the student/user file spaces located.
118
117
# (The 'subjects' and 'exercises' directories).
119
118
content_path = os.path.join(data_path, 'content')
120
119
 
121
 
# In the local file system, where are the per-subject file spaces located.
122
 
# The individual subject directories are expected to be located immediately
123
 
# in subdirectories of this location.
124
 
subjects_base = os.path.join(content_path, 'subjects')
125
 
 
126
 
# In the local file system, where are the subject-independent exercise sheet
127
 
# file spaces located.
128
 
exercises_base = os.path.join(content_path, 'exercises')
129
 
 
130
120
# In the local file system, where the system notices are stored (such as terms
131
121
# of service and MOTD).
132
122
notices_path = os.path.join(data_path, 'notices')