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

« back to all changes in this revision

Viewing changes to setup.py

  • Committer: stevenbird
  • Date: 2008-02-19 23:12:46 UTC
  • Revision ID: svn-v3-trunk0:2b9c9e99-6f39-0410-b283-7f802c844ae2:trunk:515
Propagated "problem" -> "exercise" nomenclature change.

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",
471
471
Copy subjects/ to subjects directory (unless --nosubjects specified).
472
472
 
473
473
--nojail        Do not copy the jail.
474
 
--nosubjects    Do not copy the subjects and problems directories.
 
474
--nosubjects    Do not copy the subjects and exercises directories.
475
475
--dry | -n  Print out the actions but don't do anything."""
476
476
    elif operation == 'updatejails':
477
477
        print """sudo python setup.py updatejails [--dry|-n]
490
490
    list_www = build_list_py_files('www')
491
491
    list_lib = build_list_py_files('lib')
492
492
    list_subjects = build_list_py_files('subjects', no_top_level=True)
493
 
    list_problems = build_list_py_files('problems', no_top_level=True)
 
493
    list_exercises = build_list_py_files('exercises', no_top_level=True)
494
494
    list_scripts = [
495
495
        "scripts/python-console",
496
496
        "scripts/fileservice",
532
532
list_subjects = """)
533
533
        writelist_pretty(file, list_subjects)
534
534
        file.write("""
535
 
# List of all installable files in problems directory.
 
535
# List of all installable files in exercises directory.
536
536
# This is to install sample exercise material.
537
 
list_problems = """)
538
 
        writelist_pretty(file, list_problems)
 
537
list_exercises = """)
 
538
        writelist_pretty(file, list_exercises)
539
539
 
540
540
        file.close()
541
541
    except IOError, (errno, strerror):
863
863
        # for all the students' jails).
864
864
        action_copytree('jail', os.path.join(jail_base, 'template'), dry)
865
865
    if not nosubjects:
866
 
        # Copy the subjects and problems directories across
 
866
        # Copy the subjects and exercises directories across
867
867
        action_copylist(install_list.list_subjects, subjects_base, dry,
868
868
            srcdir="./subjects")
869
 
        action_copylist(install_list.list_problems, problems_base, dry,
870
 
            srcdir="./problems")
 
869
        action_copylist(install_list.list_exercises, exercises_base, dry,
 
870
            srcdir="./exercises")
871
871
 
872
872
    # Append IVLE path to ivle.pth in python site packages
873
873
    # (Unless it's already there)