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

« back to all changes in this revision

Viewing changes to setup.py

  • Committer: dcoles
  • Date: 2008-02-19 23:17:58 UTC
  • Revision ID: svn-v3-trunk0:2b9c9e99-6f39-0410-b283-7f802c844ae2:trunk:516
forum: Fixed minor SQL syntax error that upset PostGreSQL

Show diffs side-by-side

added added

removed removed

Lines of Context:
218
218
# In the local file system, where are the per-subject file spaces located.
219
219
# The individual subject directories are expected to be located immediately
220
220
# in subdirectories of this location."""))
221
 
config_options.append(ConfigOption("problems_base",
222
 
    "/home/informatics/problems",
223
 
    """Root directory where the problem directories (containing
224
 
subject-independent problem sheets) are stored (on the local file
 
221
config_options.append(ConfigOption("exercises_base",
 
222
    "/home/informatics/exercises",
 
223
    """Root directory where the exercise directories (containing
 
224
subject-independent exercise sheets) are stored (on the local file
225
225
system):""",
226
226
    """
227
 
# In the local file system, where are the subject-independent problem sheet
 
227
# In the local file system, where are the subject-independent exercise sheet
228
228
# file spaces located."""))
229
229
config_options.append(ConfigOption("public_host", "public.localhost",
230
230
    """Hostname which will cause the server to go into "public mode",
270
270
    (Caution: This password is stored in plaintext in lib/conf/conf.py)""",
271
271
    """
272
272
# Database password"""))
 
273
 
 
274
config_options.append(ConfigOption("ldap_url", "ldaps://www.example.com",
 
275
    """URL for LDAP authentication server:""",
 
276
    """
 
277
# URL for LDAP authentication server"""))
 
278
config_options.append(ConfigOption("ldap_format_string",
 
279
    "uid=%s,ou=users,o=example",
 
280
    """Format string for LDAP auth request:
 
281
    (Must contain a single "%s" for the user's login name)""",
 
282
    """
 
283
# Format string for LDAP auth request
 
284
# (Must contain a single "%s" for the user's login name)"""))
 
285
 
273
286
config_options.append(ConfigOption("svn_conf", "/opt/ivle/svn/svn.conf",
274
287
    """The location of the subversion configuration file used by apache
275
288
to host the user repositories:""",
458
471
Copy subjects/ to subjects directory (unless --nosubjects specified).
459
472
 
460
473
--nojail        Do not copy the jail.
461
 
--nosubjects    Do not copy the subjects and problems directories.
 
474
--nosubjects    Do not copy the subjects and exercises directories.
462
475
--dry | -n  Print out the actions but don't do anything."""
463
476
    elif operation == 'updatejails':
464
477
        print """sudo python setup.py updatejails [--dry|-n]
477
490
    list_www = build_list_py_files('www')
478
491
    list_lib = build_list_py_files('lib')
479
492
    list_subjects = build_list_py_files('subjects', no_top_level=True)
480
 
    list_problems = build_list_py_files('problems', no_top_level=True)
 
493
    list_exercises = build_list_py_files('exercises', no_top_level=True)
481
494
    list_scripts = [
482
495
        "scripts/python-console",
483
496
        "scripts/fileservice",
519
532
list_subjects = """)
520
533
        writelist_pretty(file, list_subjects)
521
534
        file.write("""
522
 
# List of all installable files in problems directory.
 
535
# List of all installable files in exercises directory.
523
536
# This is to install sample exercise material.
524
 
list_problems = """)
525
 
        writelist_pretty(file, list_problems)
 
537
list_exercises = """)
 
538
        writelist_pretty(file, list_exercises)
526
539
 
527
540
        file.close()
528
541
    except IOError, (errno, strerror):
850
863
        # for all the students' jails).
851
864
        action_copytree('jail', os.path.join(jail_base, 'template'), dry)
852
865
    if not nosubjects:
853
 
        # Copy the subjects and problems directories across
 
866
        # Copy the subjects and exercises directories across
854
867
        action_copylist(install_list.list_subjects, subjects_base, dry,
855
868
            srcdir="./subjects")
856
 
        action_copylist(install_list.list_problems, problems_base, dry,
857
 
            srcdir="./problems")
 
869
        action_copylist(install_list.list_exercises, exercises_base, dry,
 
870
            srcdir="./exercises")
858
871
 
859
872
    # Append IVLE path to ivle.pth in python site packages
860
873
    # (Unless it's already there)