| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
| |
Change-Id: I7edccb6171682585891d9898055fc6b7da54cfaa
|
|\ |
|
| |
| |
| |
| |
| | |
Change-Id: I3764da98f19f02c1f28a29377c6d24238d869930
Fixes-bug: 1361728
|
|\ \ |
|
| |/
| |
| |
| |
| |
| |
| |
| |
| | |
When context locals are disabled, the order of arguments passed explicitly to
generic controller handlers is incorrect (and causes the user to interact with
e.g., a Response object, when they're really getting a Request object).
Fixes-bug: 1374683
Change-Id: I5922b0a441f1ebae032d5b0d64c9ee0f4cf018e0
|
|\ \
| |/
|/|
| | |
`python -O`."
|
| |
| |
| |
| |
| | |
Change-Id: Iaa3b9e5d6234db0c2a68992c8ef17dd90de59e40
Fixes-bug: 1373538
|
|/
|
|
|
| |
Fixes-bug: 1336943
Change-Id: I2e59e5d43d87a5279c41b155188ebe3281de0e11
|
|\ |
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
Pecan makes abundant use of `inspect.getargspec`, but unless you're very
meticulous in the decorators you wrap your controllers with, the original
argspec is not persisted (and pecan functionality can break in various ways).
When a controller is decorated in a way that breaks argspec, we should instead
attempt to locate the *actual* argspec for the method (not the wrapped
function) and use it.
Additionally, when controllers are missing **kwargs in the method signature to
map optional GET and POST arguments, we shouldn't consider that
a non-routable offense (an HTTP 400); instead, we should just *not* pass
extraneous arguments to the function.
Change-Id: I47fe0496ff6aa105359ee8e5b99f6c80476cc2e9
|
|\ \
| |/
|/|
| | |
UnicodeDecodeError."
|
| |
| |
| |
| |
| | |
Fixes-bug: 1373003
Change-Id: I7761004c047976195a680bfb2ca23fe92516f3a6
|
|/
|
|
|
|
|
|
|
| |
When RestController encounters a mismatch between function signatures and
positional URL chunks (e.g., /authors/books vs /authors/1/books), it shouldn't
raise an HTTP 400; the issue is a nonexistant URL path, not the structure of
the request/body itself.
Change-Id: I6637f88b7da4f09497f905ebafa7bf1e3788151a
|
|\ |
|
| |
| |
| |
| |
| |
| |
| |
| | |
This reverts commit 6c0ad7c5f5fbd2a0808ce268b3ba29627b7682a3.
I'd like to wait to see what happens with https://review.openstack.org/#/c/95885/.
Change-Id: I736b632fb568a0c711b3cb0a91c22d74c811edc2
|
| |
| |
| |
| |
| |
| | |
Fixes bug 1364113
Change-Id: I192c75b73ae95338dc2f1ea019e83a42fb8da87b
|
|/
|
|
| |
Change-Id: Ief2256281ea701a5fd765955aac96521773d1484
|
|
|
|
|
|
|
|
| |
As per the governance resolution https://review.openstack.org/119875,
projects should have a docs environment in their tox.ini testing
interface. Add one.
Change-Id: Ic8285618f3a8b00767ef150411c2f25c09c311b6
|
|
|
|
| |
Change-Id: Icd58638f87108a0954dd26db31a22772b4d450ed
|
|\ |
|
| |
| |
| |
| |
| |
| |
| |
| | |
The documentation and project template showed logging configuration
which sets level INFO for module called 'root' rather than the root
logger. Configure the root (default) logger instead.
Change-Id: I172d06dc6b81a31c5b698e43be50ab6302d54984
|
|\ \ |
|
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
Place the HTTP 204 handling in a `finally` at the bottom of the WSGI __call__
to ensure we catch *all* changes to `state.response`.
Change-Id: Id150205f295a3c0ca9c73ad897a41d4790476811
|
|\ \ \ |
|
| | |/
| |/|
| | |
| | | |
Change-Id: I0ea8f3519e004c141d115e9bfcf0110e53600ff5
|
|/ /
| |
| |
| | |
Change-Id: I0e57cf719a2c3372ebc61efe71a832b0482a0a3e
|
| |
| |
| |
| |
| |
| |
| |
| | |
Currently the created tarballs via "python setup.py sdist" are missing
some files to run the testsuite. Include these files so i.e. package
maintainers can run the testuite during package build.
Change-Id: I85a94f66abf5781ffc4fcee4671defab4006a8c4
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
Subclassing both `rest.RestController` and `hooks.HookController` results in an
infinite recursion error in hook application (which prevents your application
from starting).
Fixes bug 1357540
Change-Id: I6e26c6d8771b4b35943bfb85bf41e73d0982e74c
|
|/
|
|
| |
Change-Id: Ibbd8b2f075a875b109c7309bc42e0d1f1d5ae610
|
|
|
|
| |
Change-Id: Idda4968eb448dd5fe12a069f23f29fcedfebbd09
|
|
|
|
|
|
| |
Fixes bug 1339121
Change-Id: I70785315837b3907b63bb10565f3ccdf07559e8d
|
|\ |
|
| |
| |
| |
| | |
Change-Id: I653c2c7929442eaa3ac4f0950ff68d328e724e5d
|
| |
| |
| |
| | |
Change-Id: Idac278b53431988c6a3a3dfe89fcb4156f5574c1
|
|\ \
| | |
| | |
| | | |
threadlocal removal."
|
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
Certain OpenStack projects that use pecan have overridden private methods of
`pecan.rest.RestController` for custom behavior, and these method signatures
are changing in the next release of pecan to support optional threadlocals. As
good citizens, let's give these projects a deprecation period to get their
implementations back in sync with upstream pecan.
Change-Id: I02823c7fb79488aea0dd8ad3266aa7f0024bc4a0
|
|/ /
| |
| |
| | |
Change-Id: I726d698fc014c21cc1e43a09a129384fa1f1235f
|
|\ \
| | |
| | |
| | | |
Accept header."
|
| | |
| | |
| | |
| | |
| | | |
Change-Id: I32040eff4259daf7a0e58b81ce861758d1d14bd9
Fixes bug 1324134
|
|\ \ \
| |/ /
|/| | |
|
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
I noticed that people using pecan have taken to writing custom webob req/resp
subclasses and monkeypatching onto `pecan.request` and `pecan.response`. Let's
give them what they need to do this properly.
Change-Id: If0ac953e381cec3a744388000a3b3afc0ea2525c
|
|\ \ \ |
|
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
also added hook inheritance from mixins, and adding
hooks to child controllers, added as sub-controllers.
Fixes bug 1330673
Change-Id: I709cece7bcce26943b254b15dc8ddac5613b1202
|
| |/ /
|/| |
| | |
| | |
| | | |
Change-Id: Ie57feadb6efe664c1bc3c39debcb21c3355f210c
Fixes bug 1332501
|
|\ \ \ |
|
| |/ /
| | |
| | |
| | | |
Change-Id: I5a5a05e1f57ef2d8ad64e925c7ffa6907b914273
|
| | |
| | |
| | |
| | | |
Change-Id: I885dbfbddd2d6acdcbec6271acbccaebbc0de5de
|
| |/
|/|
| |
| |
| |
| |
| |
| | |
pecan.response.text and pecan.response.status should be written instead of
pecan.response.body and pecan.response.status_int
Change-Id: Ie3f4011e3f299c77d464308cabfd2245ed01bb9f
Closes-Bug: #1332101
|
|\ \ |
|
| | |
| | |
| | |
| | |
| | |
| | | |
`import logging` is required in the example.
Change-Id: I92777da13b64592d4fb064c3ee0fc9507360ca0f
|