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

« back to all changes in this revision

Viewing changes to setup.py

  • Committer: stevenbird
  • Date: 2008-02-02 00:07:53 UTC
  • Revision ID: svn-v3-trunk0:2b9c9e99-6f39-0410-b283-7f802c844ae2:trunk:378
www/dispatch/request.py:
* self.apache_req.write() chokes on strings with Unicode chars;
  specify utf-8 encoding (presumes xhtml headers also specify utf-8

www/media/tutorial/tutorial.css
* incorporate worksheet styles (from informatics/rst/worksheet.css)

Show diffs side-by-side

added added

removed removed

Lines of Context:
179
179
# In the local file system, where are the per-subject file spaces located.
180
180
# The individual subject directories are expected to be located immediately
181
181
# in subdirectories of this location."""))
182
 
config_options.append(ConfigOption("problems_base",
183
 
    "/home/informatics/problems",
184
 
    """Root directory where the problem directories (containing
185
 
subject-independent problem sheets) are stored (on the local file
186
 
system):""",
187
 
    """
188
 
# In the local file system, where are the subject-independent problem sheet
189
 
# file spaces located."""))
190
182
config_options.append(ConfigOption("public_host", "public.localhost",
191
183
    """Hostname which will cause the server to go into "public mode",
192
184
providing login-free access to student's published work:""",
385
377
Copy subjects/ to subjects directory (unless --nosubjects specified).
386
378
 
387
379
--nojail        Do not copy the jail.
388
 
--nosubjects    Do not copy the subjects and problems directories.
 
380
--nosubjects    Do not copy the subjects.
389
381
--dry | -n  Print out the actions but don't do anything."""
390
382
    elif operation == 'updatejails':
391
383
        print """sudo python setup.py updatejails [--dry|-n]
404
396
    list_www = build_list_py_files('www')
405
397
    list_console = build_list_py_files('console')
406
398
    list_subjects = build_list_py_files('subjects', no_top_level=True)
407
 
    list_problems = build_list_py_files('problems', no_top_level=True)
408
399
    # Make sure that the files generated by conf are in the list
409
400
    # (since listmake is typically run before conf)
410
401
    if "www/conf/conf.py" not in list_www:
439
430
# This is to install sample subjects and material.
440
431
list_subjects = """)
441
432
        writelist_pretty(file, list_subjects)
442
 
        file.write("""
443
 
# List of all installable files in problems directory.
444
 
# This is to install sample exercise material.
445
 
list_problems = """)
446
 
        writelist_pretty(file, list_problems)
447
433
 
448
434
        file.close()
449
435
    except IOError, (errno, strerror):
698
684
        # for all the students' jails).
699
685
        action_copytree('jail', os.path.join(jail_base, 'template'), dry)
700
686
    if not nosubjects:
701
 
        # Copy the subjects and problems directories across
 
687
        # Copy the subjects directory across
702
688
        action_copylist(install_list.list_subjects, subjects_base, dry,
703
689
            srcdir="./subjects")
704
 
        action_copylist(install_list.list_problems, problems_base, dry,
705
 
            srcdir="./problems")
706
690
 
707
691
    # Append IVLE path to ivle.pth in python site packages
708
692
    # (Unless it's already there)