Christophe de Vienne
292c556808
Make the flask adapter working with flask.ext.restful
...
Change-Id: I71d875f6579799b2881f76859fa88226dfea9b2b
2014-11-11 09:45:09 +01:00
Yuriy Zveryanskyy
9546c10250
Add custom error code to ClientSideError
...
Added custom error status code for ClientSideError
exception instead of hardcoded value 400.
Fixed case when user exception with client error code
formatted as server error.
Pecan extension fixed.
Change-Id: I2663db0aa88538b722eb2783d130585b0fc2335b
2013-10-09 16:59:40 +03:00
Ryan Petrello
d8a70a300e
Add improved support for HTTP response codes in flask apps.
...
Change-Id: If9894b262c58c597d7f7ae0cf6cb5de6783d364d
2013-09-06 12:59:31 -04:00
Christophe de Vienne
83bc4b596b
A new HostRequest type can be used to have the host framework request object passed to the exposed functions
2013-04-02 16:19:30 +02:00
Endre Karlson
6f9bb4d14f
Add tests and fix check ordering in flask.py
2013-03-28 12:44:52 +00:00
Endre Karlson
dfc7f874b3
Fix typo
2013-03-28 12:26:40 +00:00
Endre Karlson
0222cbab00
Re-iterate status_code code
2013-03-28 12:23:32 +00:00
Endre Karlson
f2668824b3
Fixup support for content types in other places then Headers.
2013-03-27 00:31:15 +00:00
Endre Karlson
3944c29c96
Support override of response format via request.dataformat
2013-03-27 00:13:16 +00:00
Endre Karlson
2a1e50e6ef
Add support for passing status_code or getting it from request
2013-03-26 23:35:27 +00:00
Christophe de Vienne
bfd1bfb4ff
Various fixes for the flask adapter
2013-03-26 14:29:18 +01:00
Christophe de Vienne
78c3328506
Test & fix Server-side errors
2013-03-25 16:07:02 +01:00
Christophe de Vienne
4ba5ce042a
Flask simple call now works
2013-03-25 15:52:32 +01:00
Christophe de Vienne
5f99ad0edd
Remove ipdb
2013-03-25 14:43:14 +01:00
Christophe de Vienne
737b794e07
New flask adapter + test (run "tox -e flask" to test)
2013-03-25 12:40:45 +01:00