summaryrefslogtreecommitdiff
path: root/pecan/core.py
Commit message (Collapse)AuthorAgeFilesLines
* Allow controllers to return an explicit `webob.Response` object.Ryan Petrello2014-05-191-0/+3
| | | | Change-Id: I5e827eed73962a0a6f5d879224759a4d13888751
* Do not include Content-Type on 204 and 304 status codesJulien Danjou2014-04-241-3/+5
| | | | Change-Id: Iec7e5e0a7d5f10bf264a2e8e0a01cdaf2d73fd86
* Merge "If an exposed method returns nothing, reply with an HTTP 204."Jenkins2014-04-231-1/+3
|\
| * If an exposed method returns nothing, reply with an HTTP 204.Ryan Petrello2014-04-231-1/+3
| | | | | | | | | | Fixes-bug: 1311629 Change-Id: I06259adc76631d88777d1747c09dae3a67692a39
* | Merge "Pass arbitrary keyword args to load_test_app"Jenkins2014-03-251-2/+2
|\ \
| * | Pass arbitrary keyword args to load_test_appJim Rollenhagen2014-03-181-2/+2
| |/ | | | | | | | | | | | | | | | | Applications can be written with arbitrary keyword arguments in `setup_app`. The test app builder should support this by allowing arbitrary keyword args to be passed to `load_test_app`, and pass those along to `load_app`. Change-Id: Icb3d5c39d0bf147c1e58732be3199a30a7539f6f
* | Delay the `threading.local` import to allow for eventlet/gevent monkeypatching.Ryan Petrello2014-03-191-3/+11
|/ | | | | | Fixes bug 1294177 Change-Id: I51482148602d85e40230547d0e19cf0c2a0c6d8a
* Cleanup the WSGI app reference from the threadlocal state on every request.Ryan Petrello2014-02-131-0/+1
| | | | | Change-Id: I22f93224047e2b6fd6692423cc27f85b6261f9f8 Closes-Bug: #1279461
* Improve pecan documentation and correct intersphinx references.Ryan Petrello2014-01-191-1/+1
| | | | Change-Id: Iac6229a2727a3c662d3fe9e83e1aa02ef648f025
* Merge "Respect security for generic controllers."Jenkins2013-10-281-0/+2
|\
| * Respect security for generic controllers.Ryan Petrello2013-10-161-0/+2
| | | | | | | | | | Fixes-bug: 1240488 Change-Id: I80cdc4609cb1e977018721db3e37d1d0e217bde2
* | Persist `pecan.request.context` across internal redirects.Ryan Petrello2013-09-301-1/+2
|/ | | | | Fixes-bug: 1233367 Change-Id: Iae7926003cd672b874b62418c53e5af227878151
* Remove a routing optimization that breaks the WSME pecan plugin.Ryan Petrello2013-09-271-17/+14
| | | | | Fixes-bug: 1232199 Change-Id: Ie0f93e5b783f601fc734919db02e658222a402ba
* Merge "core: do not try to set response body to None"Jenkins2013-09-261-1/+1
|\
| * core: do not try to set response body to NoneJulien Danjou2013-09-261-1/+1
| | | | | | | | | | | | | | In the context of DELETE, it's more than likely than the response will be empty. In such a case, setting response.body to None will fail. Change-Id: I29fde6c448c935c40c768376a15e83337b951898
* | Squeeze some more performance out of the WSGI __call__ and dispatch algorithm.Ryan Petrello2013-09-251-39/+41
|/ | | | Change-Id: I3e25381d526866d6feae05f0dcbdca5707f86df7
* Merge pull request #226 from ryanpetrello/nextmarkmcclain2013-08-081-8/+13
|\ | | | | Make some notable changes to how ``pecan.conf.app`` is passed to a new app.
| * Make some notable changes to how ``pecan.conf.app`` is passed to a new app.Ryan Petrello2013-08-081-8/+13
| | | | | | | | | | | | | | | | * Now pecan.conf.app items are treated as keywords passed directly to Pecan apps. This means no more tinkering with *both* your configuration file *and* your app.py file. * Removed support for the RequestViewerHook config file shortcut (because now you can easily specify hooks via configuration).
* | Allow on_error hooks to return a Response.Kiall Mac Innes2013-07-201-4/+13
|/ | | | | | | | This allows on_error hooks to prevent the exception from being re-raised, and instead causes the returned Response to be provided to the end user. The first on_error hook to return a response "wins", and the remaining on_error hooks are not ran.
* Remove a hard-coded UTF-8 assumption.Ryan Petrello2013-05-031-7/+1
|
* General import and flake8 cleanup.Ryan Petrello2013-05-031-6/+1
|
* More miscellaneous PY3 compatability issues.Ryan Petrello2013-04-301-4/+10
|
* More urllib import changes.Ryan Petrello2013-04-301-2/+3
|
* Remove `basestring` references for PY3 support.Ryan Petrello2013-04-301-2/+3
|
* More PY3 compatability for iteritems and execfile.Ryan Petrello2013-04-301-1/+1
|
* Import url/un/split in a compatible manner.Ryan Petrello2013-04-301-4/+9
|
* Update exception block syntax.Ryan Petrello2013-04-301-2/+2
|
* Correct relative imports.Ryan Petrello2013-04-301-5/+5
|
* Merge branch 'next' of github.com:dreamhost/pecan into nextRyan Petrello2013-04-251-55/+72
|\ | | | | | | | | Conflicts: pecan/core.py
| * More tinkering on performant Accept method handling.Ryan Petrello2013-04-241-33/+29
| |
| * More pecan optimizations.Ryan Petrello2013-04-241-2/+3
| |
| * Improve performance for general pecan request handling.Ryan Petrello2013-04-241-64/+84
| |
* | Remove some unnecessary cruft and improve test coverage for core.pyRyan Petrello2013-04-251-3/+0
|/
* Store exceptions raised by ``abort`` in the WSGI environ.Ryan Petrello2013-04-091-0/+1
| | | | This makes it easier to access the original exception later in the request cycle (e.g., other middleware or in custom error handlers).
* Attempt to resolve an issue that causes tests to fail in Travis-CI.Ryan Petrello2013-03-121-4/+2
|
* Merge pull request #174 from alfredodeza/env_varRyan Petrello2013-03-011-3/+5
|\ | | | | Environment Variable implementation
| * load_app can now work with no config param passed inAlfredo Deza2013-01-231-3/+5
| |
* | Improve inspection with ``dir()`` for ``pecan.request`` and ``pecan.response``Ryan Petrello2013-02-051-0/+5
| |
* | use path_info instead of pathAlfredo Deza2013-02-031-2/+3
|/
* Merge pull request #164 from ryanpetrello/nextmarkmcclain2013-01-181-1/+1
|\ | | | | Fix a routing-related bug in RestController. fixes #156
| * Fix a routing-related bug in RestController. fixes #156Ryan Petrello2013-01-111-1/+1
| |
* | Option to disable content-type guessing by URLDoug Hellmann2013-01-171-2/+9
|/ | | | | | | | Add a new option to disable content-type guessing based on the extension of the URL. Change-Id: I5bea41fcc1011cfb19255cc0333924034007a645 Signed-off-by: Doug Hellmann <doug.hellmann@dreamhost.com>
* Remove and annotate a few unused (and py26 alternative) imports.Ryan Petrello2013-01-081-1/+0
|
* Always include ``pecan.request['extension']``.Ryan Petrello2013-01-081-0/+1
|
* Don't strip a dotted extension from the path unless it has a matching mimetype.Ryan Petrello2013-01-081-3/+8
|
* More refinements for HTTP Accept content type guessing.Ryan Petrello2012-11-041-21/+19
|
* Add support for content type detection via Accept headers.Ryan Petrello2012-11-031-5/+31
|
* Fix another broken test.Ryan Petrello2012-11-021-1/+1
|
* pep8 complianceRyan Petrello2012-10-291-16/+10
|
* Version bump, a bug fix, more documentation...Ryan Petrello2012-03-301-8/+6
|