summaryrefslogtreecommitdiff
path: root/paste/httpexceptions.py
Commit message (Collapse)AuthorAgeFilesLines
* Merged in marsupial2k/paste (pull request #6)Marc Abramowitz2015-05-111-0/+6
|\ | | | | | | Add HTTP exception for new code 429 "Too Many Requests"
| * Add HTTP 429 "Too Many Requests"Neil Williams2011-12-231-0/+6
| | | | | | | | http://www.ietf.org/id/draft-nottingham-http-new-status-03.txt
* | Fix HTTPException.make_body() on Python 3Victor Stinner2015-04-211-3/+4
| | | | | | | | Only encode values on Python 2: Python 3 expects text, not bytes.
* | Copy the dictionary of global variables to be able to iterate over it andVictor Stinner2014-03-181-1/+1
| | | | | | | | modify global variables
* | Python 3: Replace types.ClassType with six.class_typesCyril Roelandt2014-03-181-2/+1
| |
* | Python 3: Replace "for name, value in dict.items()" with "for name, value in ↵Cyril Roelandt2014-03-181-1/+1
| | | | | | | | six.iteritems(dict)"
* | Python 3: Use six types for stringsCyril Roelandt2014-03-181-4/+5
| | | | | | | | | | * Replace (str, unicode) with (six.binary_type, six.text_type) * Replace basestring with (six.binary_type, six.text_type)
* | Python 3: Replace "except Exception, exc" with "except Exception as exc:"Cyril Roelandt2014-03-181-1/+1
|/
* Just a bit more paranoia in quoting comments, though I wasn't able to ↵Ian Bicking2010-09-141-1/+1
| | | | reproduce any actual issue
* Fix XSS attacks as reported by Tim WintleIan Bicking2010-06-151-6/+5
|
* Add a warning about the unused warning_level parameterianb2009-05-051-9/+4
|
* fix that last commitianb2009-04-241-1/+1
|
* Avoid some unicode errors in httpexceptionsianb2009-04-241-7/+9
|
* Add a note about httpexceptions and generator applications (#242)ianb2008-03-261-0/+4
|
* Simplify the way HTTPExceptionHandler catches HTTPExceptions. You can no ↵ianb2007-09-211-11/+3
| | | | longer raise httpexceptions in your app_iter
* Updated the way httpexception response objects are created, in response to ↵ianb2007-03-061-1/+1
| | | | damjam's comment on #156
* add .response() method to HTTPException objects (from damjam)ianb2007-02-191-4/+15
|
* convert old-style classes to new-style classespjenvey2007-01-051-1/+1
|
* Make WWW-Authenticate header not required for httpexceptions.HTTPUnauthorizedianb2006-11-011-1/+0
|
* Paste should not depend upon other paste modules, suchcce2006-09-211-4/+4
| | | | | | | | | as Deploy. This patch moves 'converters' into paste.util since it was being used within paste proper. I'll leave it to those who know Deploy to update that. - copied converters.py from paste.deploy to paste.util - updated files that use paste.deploy.converters
* Fixing a bug when unicode is used in exceptions, thecce2006-09-111-2/+2
| | | | | *_headers functions can be called directly w/o the module name prefix.
* reverting my last changecce2006-09-111-4/+2
|
* Adding HTTPException.detail_template class variable to permitcce2006-09-111-2/+4
| | | | | specializations to wrap a detail with contextual information. This shouldn't change any existing behavior or APIs.
* assert send_http_response was triggered by an HTTPException, incase it's being0.9.7pjenvey2006-08-111-0/+2
| | | | used incorrectly
* Updating HTTPNotModified so it works with ETag. This still needs to be fixed ↵bbangert2006-07-221-1/+2
| | | | to require either an ETag or a Date header.
* Added copyright header to a bunch of filesianb2006-06-131-0/+2
|
* Fixed issue with Safari and http exceptions since Safari sends */* as ↵bbangert2006-05-291-1/+2
| | | | Accept, lets return text/html if the Accept is */* or has html in it.
* typo in last commitianb2006-02-281-1/+1
|
* Make sure that even if content-type is passed in to the HTTPExceptions ↵ianb2006-02-281-4/+6
| | | | constructor (as a header) we overwrite the header with the actual content type we are sending
* Added a location method to redirect exceptionsianb2006-02-281-0/+7
|
* Added relative_redirect classmethod constructor to redirect exceptionsianb2006-02-021-0/+13
|
* The last two commits fixed the wrong thing; urlparser now back to how it ↵ianb2006-01-261-5/+10
| | | | was, and fix httpexceptions.wsgi_application to not try to use dict methods on the header list
* Don't html-quote HTML commentsianb2006-01-221-6/+6
|
* Allow the httpexceptions to be 'themeable'cce2006-01-031-9/+14
|
* - cleaned up documentation for paste.auth.cookiecce2005-12-311-45/+49
| | | | | | | | - cleaned up documentation for paste.auth.form - cleaned up documentation for paste.auth.basic - converted InternalServerError into its own class (httpexceptions) - converted BadRequest into its own class (httpexceptions) - a few minor cleanups
* - fixes to make auto-documentation work nicercce2005-12-301-16/+47
| | | | question: how do I get pudge to document a 'private' class?
* (no commit message)cce2005-12-301-1/+1
|
* - fixing my awful spellingcce2005-12-301-5/+5
|
* - added Range: functionality to FileAppcce2005-12-251-1/+1
| | | | | | - removed unnecessary trailing whitespace in fixture.py - no longer reporting socket failures in httpserver - fixed some caching issues /w fileapp
* - got rid of unnecessary trailing spaces in httpexceptionscce2005-12-231-65/+69
| | | | | | | | | - made error messages us \r\n rather than just \n in httpexceptions to comply with various browsers - added tests to check FileApp - added support for handling 100 Continue in httpserver - fixingup dumpenviron in wsgilib to dump message body - misc changes to fileapp (mostly documentation)
* - made __call__ for an HTTPException be the same as wsgi_applicationcce2005-12-231-0/+1
| | | | | | | | - added if-modified-since logic to fileapp.py - added helper to mark file/data as cached in fileapp.py - added starter regression test for fileapp.py note: if-modified-since is still slighly broken due to timezone issues (it isn't consistenly keeping gmtime and localtime)
* Improve error messages in assertionsianb2005-12-211-4/+11
|
* Handle case of no headers and proper error messageianb2005-12-191-1/+1
|
* A bunch of little import cleanups noted from pyflakesianb2005-12-181-1/+0
|
* Moved all the internal uses of wsgilib to their correct forms nowianb2005-12-181-1/+2
|
* Added a fix for httpexceptions when an exception is raised by the iterator, ↵ianb2005-12-151-22/+11
| | | | along with another error catching function for making it work
* Let HTTPExceptions in the app iterator bubble up for now, because by using ↵ianb2005-12-141-4/+3
| | | | the generator we aren't calling the close method like we should
* Warn at the right stacklevelianb2005-12-141-1/+1
|
* make_middleware doesn't use global_conf, not sure why its a required arg. ↵bbangert2005-12-131-1/+1
| | | | Eval exception calls middleware without a global_conf though. Updated evalexception/middleware to use make_middleware instead, and make_middleware to not require global_conf.
* removed debug print; keep httpexceptions.middleware signature, which matches ↵ianb2005-12-131-3/+2
| | | | make_middleware not HTTPExceptionHandler