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

« back to all changes in this revision

Viewing changes to setup/util.py

  • Committer: David Coles
  • Date: 2010-07-27 04:52:14 UTC
  • Revision ID: coles.david@gmail.com-20100727045214-p32h1kc0gcv48dpr
Worksheets: Strip off whitespace from the end of exercise attempts.

This solves an issue where accidental whitespace in an attempt will cause 
"IndentationError" syntax error (which don't occur when run in console).

Show diffs side-by-side

added added

removed removed

Lines of Context:
256
256
# Mime types which will automatically be placed in the list by InstallList.
257
257
installlist_mimetypes = ['text/x-python', 'text/html',
258
258
    'application/x-javascript', 'application/javascript',
259
 
    'text/css', 'image/png', 'image/gif', 'application/xml', 'text/plain']
 
259
    'text/css', 'image/png', 'image/gif', 'application/xml', 'text/plain',
 
260
    'text/x-sh']
260
261
# Filenames which will automatically be placed in the list by InstallList.
261
262
whitelist_filenames = ['ivle-spec.conf']
262
263
 
310
311
    ]
311
312
 
312
313
    list_user_binaries = [
 
314
        "bin/ivle-addexercise",
 
315
        "bin/ivle-adduser",
 
316
        "bin/ivle-buildjail",
 
317
        "bin/ivle-cloneworksheets",
 
318
        "bin/ivle-config",
 
319
        "bin/ivle-createdatadirs",
313
320
        "bin/ivle-enrol",
314
321
        "bin/ivle-enrolallusers",
 
322
        "bin/ivle-fetchsubmissions",
315
323
        "bin/ivle-listusers",
316
 
        "bin/ivle-makeuser",
317
 
        "bin/ivle-marks",
 
324
        "bin/ivle-loadsampledata",
318
325
        "bin/ivle-mountallusers",
 
326
        "bin/ivle-refreshfilesystem",
319
327
        "bin/ivle-remakeuser",
320
328
        "bin/ivle-showenrolment",
321
 
        "bin/ivle-config",
322
 
        "bin/ivle-createdatadirs",
323
 
        "bin/ivle-buildjail",
324
 
        "bin/ivle-addexercise",
325
 
        "bin/ivle-cloneworksheets",
326
329
    ]