web/application.py
changeset 8711 64a400eea6dd
parent 8696 0bb18407c053
parent 8709 8dc0b8d92694
child 8753 b61a7c6352f2
equal deleted inserted replaced
8708:78a99960286a 8711:64a400eea6dd
   539         req.set_header('Cache-Control', 'no-cache')
   539         req.set_header('Cache-Control', 'no-cache')
   540         req.remove_header('Etag')
   540         req.remove_header('Etag')
   541         req.reset_message()
   541         req.reset_message()
   542         req.reset_headers()
   542         req.reset_headers()
   543         if req.ajax_request:
   543         if req.ajax_request:
   544             return ajax_error_handler(req, ex)
   544             return self.ajax_error_handler(req, ex)
   545         try:
   545         try:
   546             req.data['ex'] = ex
   546             req.data['ex'] = ex
   547             if tb:
   547             if tb:
   548                 req.data['excinfo'] = excinfo
   548                 req.data['excinfo'] = excinfo
   549             req.form['vid'] = 'error'
   549             req.form['vid'] = 'error'