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

« back to all changes in this revision

Viewing changes to lib/common/util.py

  • Committer: dcoles
  • Date: 2008-05-30 00:36:54 UTC
  • Revision ID: svn-v3-trunk0:2b9c9e99-6f39-0410-b283-7f802c844ae2:trunk:756
Added SciPy install requirements

Show diffs side-by-side

added added

removed removed

Lines of Context:
47
47
        self.message = message
48
48
        self.args = (httpcode, message)
49
49
 
50
 
class IVLEJailError(Exception):
51
 
    """
52
 
    This exception indicates an error that occurred inside an IVLE CGI script
53
 
    inside the jail. It should never be raised directly - only by the 
54
 
    interpreter.
55
 
 
56
 
    Information will be retrieved from it, and then treated as a normal
57
 
    error.
58
 
    """
59
 
    def __init__(self, type_str, message, info):
60
 
        self.type_str = type_str
61
 
        self.message = message
62
 
        self.info = info
63
 
 
64
50
def make_path(path):
65
51
    """Given a path relative to the IVLE root, makes the path relative to the
66
52
    site root using conf.root_dir. This path can be used in URLs sent to the