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

« back to all changes in this revision

Viewing changes to setup/util.py

  • Committer: David Coles
  • Date: 2010-08-30 03:26:13 UTC
  • Revision ID: coles.david@gmail.com-20100830032613-d14vng0jkelniu3l
python-console: Fix globals broken with new JSON library.

simplejson always returns unicode strings. cJSON would return ordinary strings 
if possible. cPickle.loads() only accepts strings. At present we use pickle 
version 0 so they should all works as ASCII strings. Higher versions of pickle 
are not plain ASCII and are likely to break this and so this should be fixed 
at some point.

Also replaced unconditional exception with one that catches Pickle errors. Not 
sure the best way to report failures of these functions.

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
 
320
321
        "bin/ivle-enrolallusers",
321
322
        "bin/ivle-fetchsubmissions",
322
323
        "bin/ivle-listusers",
323
 
        "bin/ivle-marks",
 
324
        "bin/ivle-loadsampledata",
324
325
        "bin/ivle-mountallusers",
325
326
        "bin/ivle-refreshfilesystem",
326
327
        "bin/ivle-remakeuser",