Source

circuits / circuits / web / errors.py

Author Commit Message Labels Comments Date
James Mills
Fixed a bug with the Redirect event/error in circuits.web where it didn't handle unicode strings
Alessio Deiana
fixes of various import for py2 compatibility
James Mills
Merged with a3e9497376e5
James Mills
- 2to3 conversion (some manual)
James Mills
circuits.web.errors: Make traceback available on the HTTPError Event Object as self.traceback
James Mills
This is a big atomic commit but here's the short version:
James Mills
circuits.web: Improved HTTPError event/error so that's it's easier to do something with HTTPError events. eg: filter them into prettier/fancier pages
James Mills
**Multiple Changes**:
James Mills
circuits.web.errors: Fixed XSS- vulnerability (forgot to escape traceback messages which could potentially contain untrusted/unsafe data)
James Mills
circuits.web.errors: Fixed formatting of tracebacks (they are pre-formatted as of some revisions ago) ... :)
James Mills
web.errors: Improved traceback and message in HTTPError.
James Mills
web.errors: Double assignment here removed (typo).
James Mills
web.errors: Only set attribute etype, evalue and traceback if error is not None. Set template variable traceback iif error is not None.
James Mills
web.errors: Set additional attributes etype, evalue and traceback for HTTPError object and pass a formatted traceback as "traceback" for the default error template.
James Mills
(WARNING): Completed library restructure. -Everything- is potentially broken\!