| Commit message (Collapse) | Author | Age | Files | Lines |
|\ |
|
| |
| |
| |
| |
| | |
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
|
|
|
|
|
|
| |
Fixes bug 1364113
Change-Id: I192c75b73ae95338dc2f1ea019e83a42fb8da87b
|
|\ |
|
| |
| |
| |
| |
| |
| |
| |
| | |
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: I0e57cf719a2c3372ebc61efe71a832b0482a0a3e
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
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
|
|
|
|
|
|
| |
Fixes bug 1339121
Change-Id: I70785315837b3907b63bb10565f3ccdf07559e8d
|
|\
| |
| |
| | |
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: I5e827eed73962a0a6f5d879224759a4d13888751
|
|\ |
|
| |
| |
| |
| |
| |
| | |
Related to bug 1311629
Change-Id: Ic442457c501d598814f492e7aab4d885bdcf0711
|
|/
|
|
| |
Change-Id: Iec7e5e0a7d5f10bf264a2e8e0a01cdaf2d73fd86
|
|
|
|
|
|
| |
Fixes bug 1311147
Change-Id: I3dd0986c458902b03ed140872fc1938b06e75f4b
|
|\ |
|
| |
| |
| |
| |
| | |
Fixes-bug: 1311629
Change-Id: I06259adc76631d88777d1747c09dae3a67692a39
|
|\ \ |
|
| | |
| | |
| | |
| | | |
Change-Id: Ic88b41e4032d6c97e020485341d375c196a1a1c0
|
|/ /
| |
| |
| |
| |
| |
| |
| |
| |
| | |
This reverts commit 9ce0a79866fc4aee0b0988b5b75ce2432c97d0ee.
This was originally an attempted workaround for:
https://github.com/Pylons/webtest/commit/38137ee4b4afb300ab1a8bbf13f66e1a8238b1b8#diff-f8658b710075968677d52c7d013ec098R240
but is an inappropriate fix (that causes a bug of its own).
Change-Id: I3f957a0fff1985596974f51fa154f5de652dc7c5
|
| |
| |
| |
| | |
Change-Id: If592949bb1dedfc3674d939d5244f5efd4a02eb3
|
|\ \ |
|
| |/
| |
| |
| |
| |
| |
| |
| |
| | |
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
|
|\ \ |
|
| |/
| |
| |
| | |
Change-Id: I05e9343236be0c3a59a8b6f0ed40de462bd34a78
|
|\ \ |
|
| |/
| |
| |
| | |
Change-Id: I480cb2569277ce5ee2dbf63cae557e39f74583e1
|
|/
|
|
|
|
| |
Fixes bug 1294177
Change-Id: I51482148602d85e40230547d0e19cf0c2a0c6d8a
|