Changeset 150
- Timestamp:
- 02/13/05 09:28:49
- Files:
-
- trunk/cherrypy/_cpdefaults.py (modified) (1 diff)
- trunk/cherrypy/_cphttptools.py (modified) (3 diffs)
- trunk/cherrypy/test/helper.py (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/cherrypy/_cpdefaults.py
r116 r150 61 61 bodyFile = StringIO.StringIO() 62 62 traceback.print_exc(file = bodyFile) 63 cpg.response.body = bodyFile.getvalue()63 cpg.response.body = [bodyFile.getvalue()] 64 64 cpg.response.headerMap['Content-Type'] = 'text/plain' 65 65 trunk/cherrypy/_cphttptools.py
r145 r150 214 214 # error reporting seems to be broken in some cases. This code is 215 215 # a helper to check it 216 print "%"*80217 216 traceback.print_exc() 218 print "%"*80219 217 err = "" 220 218 exc_info_1 = sys.exc_info()[1] … … 250 248 wfile.write(line) 251 249 except: 252 # TODO: in some cases exceptions and filters are conflicting;253 # error reporting seems to be broken in some cases. This code is254 # a helper to check it255 #print "%"*80256 #traceback.print_exc()257 #print "%"*80258 250 bodyFile = StringIO.StringIO() 259 251 traceback.print_exc(file = bodyFile) … … 408 400 cpg.request.objectPath = '/' + '/'.join(objectPathList[1:]) 409 401 body = func(*(virtualPathList + cpg.request.paramList), **(cpg.request.paramMap)) 410 402 411 403 # builds a uniform return type 412 404 if not isinstance(body, types.GeneratorType): trunk/cherrypy/test/helper.py
r110 r150 122 122 def all(self): 123 123 cpg.server.stop() 124 return "" 124 125 all.exposed = True 125 126 cpg.root.shutdown = Shutdown()

