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

« back to all changes in this revision

Viewing changes to ivle/cgirequest.py

  • Committer: William Grant
  • Date: 2009-02-27 05:07:09 UTC
  • Revision ID: grantw@unimelb.edu.au-20090227050709-k16kvhyl50nzjbwm
Subject URLs now contain the short name (eg. info1) rather than the code
(eg. 600151).

Show diffs side-by-side

added added

removed removed

Lines of Context:
25
25
# This allows CGI scripts to create request objects and then pass them to
26
26
# normal IVLE handlers.
27
27
 
28
 
# NOTE: This object does not support write_html_head_foot (simply because we
29
 
# do not need it in its intended application: fileservice).
30
 
 
31
28
import sys
32
29
import os
33
30
import cgi
155
152
        self.status = CGIRequest.HTTP_OK
156
153
        self.content_type = None        # Use Apache's default
157
154
        self.location = None
158
 
        self.title = None     # Will be set by dispatch before passing to app
159
155
        self.styles = []
160
156
        self.scripts = []
161
 
        self.write_html_head_foot = False
162
157
        self.got_common_vars = False
163
158
 
164
159
 
197
192
            if k != 'Content-Type' and k != 'Location':
198
193
                print "%s: %s" % (k, v)
199
194
 
200
 
        # XXX write_html_head_foot not supported
201
 
        #if self.write_html_head_foot:
202
 
        #    # Write the HTML header, pass "self" (request object)
203
 
        #    self.func_write_html_head(self)
204
195
        # Print a blank line to signal the start of output
205
196
        print
206
197