Ryan Petrello
2f4881ddd6
Merge pull request #86 from jd/jd/no-warning
...
routing: stop printing warning if the user passes a wrong URL
2017-05-23 11:46:09 -04:00
Julien Danjou
93d1a08f54
routing: do not catch TypeError too wildly
...
The current scope if try/except it way larger than it needs to be, which could
make it catch errors that are not tied to the method being called.
2017-01-21 19:40:37 +01:00
Julien Danjou
2b8e8816ad
routing: stop printing warning if the user passes a wrong URL
...
When a _lookup method accepts N + *remainder arguments but the number of
path components (separated by /) is < N, a TypeError is raised when calling the
object and Pecan prints a RuntimeWarning that is log. Unfortunately this just
fills up the log with no interesting information for the developer as this is
just a standard 404 error.
2017-01-21 19:40:36 +01:00
Alfredo Deza
3673bae6f3
Merge pull request #85 from ryanpetrello/master
...
Gate OpenStack projects on stable/newton.
2016-10-17 16:19:48 -04:00
Ryan Petrello
3f4de80e86
Gate OpenStack projects on stable/newton.
2016-10-17 14:33:11 -04:00
Ryan Petrello
b3699aeae1
Version increment.
2016-09-26 20:08:15 -04:00
Ryan Petrello
4cfe319738
Revert "Controllers that return `None` should be an HTTP 204."
...
This reverts commit fbcc2c27f7
.
2016-09-26 20:05:34 -04:00
Jonathan LaCour
6de2baefb6
Merge pull request #83 from ryanpetrello/master
...
Version increment.
2016-09-21 11:11:56 -07:00
Ryan Petrello
17ba3a936f
Version increment.
2016-09-21 13:01:37 -04:00
Jonathan LaCour
f45ea91116
Merge pull request #82 from ryanpetrello/master
...
When a template renderer isn't supported, provide a better error message
2016-09-21 09:20:36 -07:00
Ryan Petrello
485cf9fe3f
When a template renderer isn't supported, provide a better error message.
...
Closes #81
2016-09-21 07:38:52 -07:00
Ryan Petrello
6ccba2564d
Merge pull request #78 from alfredodeza/rw-db-split
...
provide an actual code and configuration examples for split database connections
2016-08-02 14:19:41 -04:00
Alfredo Deza
6a82025904
provide an actual code and configuration examples for split database connections
2016-08-02 11:08:49 -04:00
Ryan Petrello
f4325de88c
Merge pull request #79 from ryanpetrello/master
...
Controllers that return `None` should be an HTTP 204.
2016-07-26 10:59:52 -04:00
Ryan Petrello
fbcc2c27f7
Controllers that return `None` should be an HTTP 204.
2016-07-22 16:12:42 -04:00
Jonathan LaCour
53eeda946d
Merge pull request #77 from ryanpetrello/expose-optional-method
...
The `method` argument for generic controllers should not be optional.
2016-07-22 11:40:34 -07:00
Ryan Petrello
dd38ea8a51
The `method` argument for generic controllers should not be optional.
2016-07-22 14:01:35 -04:00
Ryan Petrello
1506378f80
Merge pull request #76 from ryanpetrello/fix-tests
...
Fix broken py35 tests.
2016-07-22 13:45:32 -04:00
Ryan Petrello
44517ef57b
Fix broken py35 tests.
2016-07-22 13:13:31 -04:00
Jonathan LaCour
18d98d4a80
Merge pull request #71 from ryanpetrello/master
...
Simplify our argspec compatability shim.
2016-06-23 11:03:23 -07:00
Ryan Petrello
35f9c78274
Simplify our argspec compatability shim.
2016-06-23 11:09:00 -04:00
Jonathan LaCour
b6154c5938
Merge pull request #69 from ryanpetrello/master
...
Version increment.
2016-06-20 09:15:36 -07:00
Ryan Petrello
19bade53f6
Version increment.
2016-06-20 09:17:14 -04:00
Ryan Petrello
b5f302ad12
Merge pull request #67 from adamchainz/readthedocs.io
...
Convert readthedocs links for their .org -> .io migration for hosted projects
2016-06-20 09:08:22 -04:00
Adam Chainz
3fd97361ab
Convert readthedocs links for their .org -> .io migration for hosted projects
...
As per [their blog post of the 27th April](https://blog.readthedocs.com/securing-subdomains/ ) ‘Securing subdomains’:
> Starting today, Read the Docs will start hosting projects from subdomains on the domain readthedocs.io, instead of on readthedocs.org. This change addresses some security concerns around site cookies while hosting user generated data on the same domain as our dashboard.
Test Plan: Manually visited all the links I’ve modified.
2016-06-18 09:45:12 +01:00
Alfredo Deza
f47debb8b8
Merge pull request #66 from ryanpetrello/master
...
JSON-formatted HTTP response bodies should use `pecan.jsonify.encode`.
2016-06-17 13:07:12 -04:00
Ryan Petrello
bc209c526a
JSON-formatted HTTP response bodies should use `pecan.jsonify.encode`.
...
If a webob.HTTPException is raised, and the Accept header is application/json,
pecan automatically returns a JSON-formatted response body. If this is the
case, `pecan.jsonify.encode` should be used (instead of `json.dumps`) so that
JSON serialization rules (http://pecan.readthedocs.io/en/latest/jsonify.html )
are respected.
2016-06-16 22:36:05 -04:00
Jonathan LaCour
a0d349b801
Merge pull request #65 from ryanpetrello/master
...
Properly handle Python3 bytes in `pecan.middleware.debug`
2016-06-09 11:50:21 -07:00
Ryan Petrello
17532b7c70
Properly handle Python3 bytes in `pecan.middleware.debug`
...
Closes #64
2016-06-09 11:00:18 -04:00
Alfredo Deza
130f22eea1
Merge pull request #63 from ryanpetrello/master
...
Version increment.
2016-06-03 08:50:13 -04:00
Ryan Petrello
ba8cc0144b
Version increment.
2016-06-03 08:28:57 -04:00
Alfredo Deza
a281087839
Merge pull request #62 from ryanpetrello/master
...
Officially support Python 3.5.
2016-06-03 07:58:55 -04:00
Ryan Petrello
a5a4c81c5c
Officially support Python 3.5.
2016-06-02 16:02:14 -04:00
Ryan Petrello
6950d55e42
Replace usage of `inspect.getargspec` with `inspect.signature` for PY3. ( #61 )
...
inspect.getargspec is deprecated in Python 3.5 and removed in Python 3.6
(replaced with inspect.signature). This provides a compatability shim for
Python3 so we can continue to pass around an `inspect.ArgSpec`-like object
within pecan.
2016-06-02 13:08:19 -04:00
Ryan Petrello
37248d86a2
Merge pull request #59 from jdandrea/master
...
Pecan "after" hooks are called during internal redirects.
2016-05-31 17:43:22 -04:00
Joe D'Andrea
3a570f919b
Pecan "after" hooks are called during internal redirects.
...
PecanBase:__call__() now calls "after" hooks only if an
internal redirect is not in progress.
2016-05-31 19:24:27 +00:00
Ryan Petrello
e0029266e3
Version increment. ( #57 )
2016-05-25 21:59:36 -04:00
Jonathan LaCour
2fe6551043
Merge pull request #56 from ryanpetrello/master
...
Pecan's basic debug middleware should log exceptions at ERROR level.
2016-05-25 14:49:56 -07:00
Ryan Petrello
3176dc7d41
Pecan's basic debug middleware should log exceptions at ERROR level.
2016-05-25 16:49:56 -04:00
Alfredo Deza
00024cf464
Merge pull request #55 from ryanpetrello/master
...
Fix a Javascript bug in the default project scaffold.
2016-05-20 11:43:43 -04:00
Ryan Petrello
b2bf03ad5c
Fix a Javascript bug in the default project scaffold.
...
<style language="text/javascript"> is not a valid attribute; this should be
<style type="text/javacript">
2016-05-20 10:51:59 -04:00
Ryan Petrello
24a3a5827c
Merge pull request #53 from ryanpetrello/expose-json-doc
...
Improve documentation for @expose('json').
2016-04-19 15:09:37 -04:00
Ryan Petrello
b41300b5a7
Improve documentation for @expose('json').
2016-04-19 14:41:56 -04:00
Ryan Petrello
1a0a72f0b1
Merge pull request #54 from ryanpetrello/mitaka-gate
...
Gate OpenStack projects on stable/mitaka
2016-04-19 12:13:17 -04:00
Ryan Petrello
9ca4ef189b
Gate OpenStack projects on stable/mitaka.
2016-04-19 11:33:48 -04:00
Jonathan LaCour
30765981e1
Merge pull request #50 from ryanpetrello/master
...
Version increment.
2016-03-16 09:24:29 -07:00
Ryan Petrello
cc16d3de86
Version increment.
2016-03-16 10:05:34 -04:00
Jonathan LaCour
584e427de9
Merge pull request #49 from ryanpetrello/origin/bug/47
...
Fix a bug in controller argspec detection when class-based decorators are used.
2016-03-15 12:49:06 -07:00
Ryan Petrello
f8ced0b7c6
Fix a bug in controller argspec detection when class-based decorators are used.
2016-03-15 14:35:45 -04:00
Ryan Petrello
ce728f4878
Merge pull request #46 from jiahaoliang/patch-1
...
Change id type to make it consistent
2016-02-29 09:30:50 -05:00