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

« back to all changes in this revision

Viewing changes to ivle/cgirequest.py

  • Committer: Matt Giuca
  • Date: 2009-12-08 02:17:54 UTC
  • Revision ID: matt.giuca@gmail.com-20091208021754-xpjmt72v8ud93q9y
Added sample data infrastructure, with a little bit of sample data. The sample data is in examples/db/sample.sql. Documentation in doc/man/sample.rst details the infrastructure for importing and exporting sample data.

Show diffs side-by-side

added added

removed removed

Lines of Context:
241
241
            return sys.stdin.read(len)
242
242
 
243
243
    def handle_unknown_exception(self, exc_type, exc_value, exc_tb):
 
244
        if exc_type is ivle.util.IVLEError:
 
245
            self.headers_out['X-IVLE-Error-Code'] = exc_value.httpcode
 
246
 
244
247
        self.headers_out['X-IVLE-Error-Type'] = exc_type.__name__
245
248
 
246
249
        try: