Changeset 3469 for pykota/trunk/cgi-bin
- Timestamp:
- 12/16/08 22:45:54 (16 years ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
pykota/trunk/cgi-bin/dumpykota.cgi
r3413 r3469 231 231 ctype = "text/plain" 232 232 fname = "page_log" 233 print "Content-type: %s" % ctype 234 print "Content-disposition: attachment; filename=%s" % fname 235 print 233 sys.stdout.write("Content-type: %s\n" % ctype) 234 sys.stdout.write("Content-disposition: attachment; filename=%s\n\n" % fname) 236 235 self.main(self.arguments, self.options, restricted=0) 237 236 except : 238 print 'Content-type: text/html\n\n<html><head><title>CGI Error</title></head><body><p><font color="red">%s</font></p></body></html>' % self.crashed("CGI Error").replace("\n", "<br />")237 sys.stdout.write('Content-type: text/html\n\n<html><head><title>CGI Error</title></head><body><p><font color="red">%s</font></p></body></html>\n' % self.crashed("CGI Error").replace("\n", "<br />")) 239 238 else : 240 239 self.guiDisplay()