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

« back to all changes in this revision

Viewing changes to ivle/cgirequest.py

Remove the last two uses of req.write_html_head_foot.

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
 
28
31
import sys
29
32
import os
30
33
import cgi
152
155
        self.status = CGIRequest.HTTP_OK
153
156
        self.content_type = None        # Use Apache's default
154
157
        self.location = None
 
158
        self.title = None     # Will be set by dispatch before passing to app
155
159
        self.styles = []
156
160
        self.scripts = []
 
161
        self.write_html_head_foot = False
157
162
        self.got_common_vars = False
158
163
 
159
164
 
192
197
            if k != 'Content-Type' and k != 'Location':
193
198
                print "%s: %s" % (k, v)
194
199
 
 
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)
195
204
        # Print a blank line to signal the start of output
196
205
        print
197
206