summaryrefslogtreecommitdiff
path: root/cherrypy/lib/cptools.py
Commit message (Collapse)AuthorAgeFilesLines
* Remove reliance on sixJason R. Coombs2018-09-021-4/+2
|
* Enhance comment and use generator expression to traverse IPs.Jason R. Coombs2018-06-161-2/+2
|
* Merge branch 'master' into feature/reuse-case-insensitive-dictJason R. Coombs2017-12-171-2/+6
|\
| * Regarding E305, honor the style guide rather than suppressing errors.Jason R. Coombs2017-10-291-2/+6
| |
* | Use jaraco.collections for code re-use on CaseInsensitiveDict. Fixes #1231.Jason R. Coombs2017-10-281-12/+5
|/
* Remove long-deprecated legacy 'has_any' methods on mappings.Jason R. Coombs2017-10-281-6/+0
|
* In proxy tool, more simply rely on the existing request.base if no Host ↵Jason R. Coombs2017-08-281-4/+3
| | | | header exists and no base was indicated. Avoid adding an extra port indicator. Fixes #1627.
* Partially revert "PEP8fy codebase: eliminated W601 flake8 error"Sviatoslav Sydorenko2017-03-121-2/+2
| | | | This partially reverts commit 32073335657deacb0b20e0b1521dbba811e4f6b0.
* PEP8fy codebase: eliminated W601 flake8 errorSviatoslav Sydorenko2017-03-111-2/+2
|
* Fix trailing whitespaces across the repoSviatoslav Sydorenko2017-03-111-2/+2
|
* PEP8fy codebase: eliminated E305 flake8 errorSviatoslav Sydorenko2017-03-111-8/+10
|
* Fix E265: block comment should start with '# 'Sviatoslav Sydorenko2016-09-191-1/+1
|
* Convert all strings to conform single-quoted styleSviatoslav Sydorenko2016-09-081-35/+35
| | | | pre-commit run double-quote-string-fixer --all-files
* HTTPError provides context manager for handling exceptions.Aric Coady2016-09-031-3/+1
|
* Use the preferred name text_or_bytes to avoid conflation with 'basestring' ↵Jason R. Coombs2016-07-241-2/+2
| | | | which has no equivalent on Python 3.
* Convert request params based on function annotations. Fixes #1441.Aric Coady2016-07-171-0/+18
|
* Replaced 'unicodestr' with 'six.text_type'Jason R. Coombs2016-06-051-2/+4
|
* Fix NameError on string formatting for the proxy toolJoel Rivera2016-02-051-1/+2
|
* Merged in EoghanMurray/cherrypy/host-localhost (pull request #94)Joel Rivera2016-02-031-5/+3
|\ | | | | | | The base can be found at request.headers['Host'] if serving standalone. Useful for development at local.example.com
| * The base can be found at request.headers['Host'] if serving standalone. ↵Eoghan Murray2015-02-281-5/+3
| | | | | | | | | | | | | | Useful for development at local.example.com --HG-- branch : host-localhost
* | Simply get set from builtinsJason R. Coombs2015-12-191-1/+1
| |
* | Replace usage of md5 and sha with canonical importsJason R. Coombs2015-12-191-1/+2
|/
* Extract message to perform debug messagesJason R. Coombs2014-09-131-23/+16
|
* Extract variable for nicer indentationJason R. Coombs2014-09-131-7/+8
|
* Merge with cherrypy-3.2.xJason R. Coombs2014-09-131-1/+2
|\
| * cptools.SessionAuth: fix login_screen page handlerBalazs Scheidler2014-03-121-1/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | The login_screen page handler erroneously returned the formatted HTML page, which was simply interpreted as a boolean that controls whether the call to the controller function was suppressed or not. Set the response.body instead and return a literal True that suppresses the call to the page handler. Signed-off-by: Balazs Scheidler <bazsi@balabit.hu> --HG-- branch : fix-session-auth-login-screen
| * Fix bug #1268, X-Forwarded-For IP orderJoseph Tate2014-03-061-2/+2
| | | | | | | | | | --HG-- branch : cherrypy-3.2.x
* | Use is_iterator function to determine if the response content is iterable, ↵Allan Crooks2014-04-151-3/+2
| | | | | | | | | | | | | | rather than just testing if it is a generator. This is in preparation for a fix for #1288. Note - we could test against collections.Iterator, but this seems like a cleaner way of doing it for now.
* | Fix bug #1268, X-Forwarded-For IP orderJoseph Tate2014-03-061-3/+2
| |
* | More PEP8 work.Gustavo Picon2014-01-121-6/+12
| |
* | Running: autopep8 -vvvvv -i `find . -name '*.py'`Gustavo Picon2014-01-121-10/+25
|/ | | | | --HG-- branch : autopep8
* Fix login_screen so it works on Python 3 (and test passes)Jason R. Coombs2012-03-281-3/+3
| | | | | --HG-- branch : cherrypy-3.2.x
* Always encode login_screen (no longer needs ntob). Fixes #1132.Jason R. Coombs2012-03-251-4/+3
| | | | | --HG-- branch : cherrypy-3.2.x
* Resaved with excess whitespace removedJason R. Coombs2012-03-241-64/+64
| | | | | --HG-- branch : cherrypy-3.2.x
* More version numbers bumped. Some sync between wsgiserver2 and 3.Robert Brewer2011-07-061-1/+1
|
* Bye bye, py2/3.Robert Brewer2011-07-021-0/+617
|
* Bringing python3 back into trunk with its own py3 folder; what was in trunk ↵trunkRobert Brewer2011-02-251-611/+0
| | | | goes in the py2 folder, and we can use a single setup.py to install either, depending on the version of Python that runs setup.py install.
* Freeow. The magic cherrypy/_cpcompat.py module to take all our py3k fears away.Robert Brewer2011-02-241-12/+3
|
* New logging.statistics in wsgiserver, plus new lib/cpstats.pyRobert Brewer2011-02-231-0/+30
|
* Sphinx docs in cherrypy.lib.*chbrown2010-02-241-6/+16
|
* sync with python3, including separation of InternalRedirect handling and ↵Robert Brewer2009-10-051-1/+1
| | | | Exception trapping to WSGI middleware.
* Missing request object on debugSylvain Hellegouarch2009-09-301-1/+1
|
* Final fix for #915 (Add "debug=False" arg to builtin Tools).Robert Brewer2009-08-061-12/+43
|
* Fix for #952 (on multiple proxies getting multiple base urls) for 3.0, 3.1, ↵Robert Brewer2009-08-051-1/+1
| | | | 3.2 (trunk and python3).
* Copied some tool debug code from python3Robert Brewer2009-08-021-15/+67
|
* All internals now use cherrypy.serving.request/response instead of ↵Robert Brewer2009-06-221-36/+45
| | | | request/response for a speed boost.
* trunk - adding a py3util module that will normalize as many differences ↵Lakin Wecker2009-06-011-3/+3
| | | | between this branch and the python3 branch as it can. First it includes a py3print call who's signature matches that of print in python3. Also removed a few byte strings of the form b''
* trunk - avoiding the mutating default arg anti-pattern. :)Lakin Wecker2009-05-311-1/+3
|
* Fixed autovary via an ignore arg; it broke due to _cpreqbody touching some ↵Robert Brewer2009-05-311-2/+3
| | | | headers.
* trunk - Porting the cherrypy.lib.httputil name change. It'll be easier to ↵Lakin Wecker2009-05-311-8/+8
| | | | maintain two released branches if the modules are named the same. However, in the 2.6 branch we'll leave cherrypy.lib.http working and deprecate it for 3.3.