[Cubicweb] [review/cubicweb] commit: [views] implement a custom json error ...

Julien Cristau julien.cristau at logilab.fr
Thu Jun 18 18:15:20 CEST 2015


On Tue, Jun 16, 2015 at 16:13:15 +0000, Commit notifications for hg.logilab.org repositories wrote:

> details:   http://hg.logilab.org/review/cubicweb/rev/0bbd211cf4d7
> phase: draft
> branch: 
> changeset: 16373:0bbd211cf4d7
> user:      Adrien Di Mascio <Adrien.DiMascio at logilab.fr>
> date:      Tue Jun 16 18:01:58 2015 +0200
> description:
> [views] implement a custom json error view
> 
> If the client asked for ``(e)jsonexport`` view, answer
> him with a json response rather than an error formatted
> in a big HTML blob.
> 
> 
> add a custom _requested_vid predicate. In cw 3.21, it will
> be deprecated in favor of ``match_form_params(vid=('jsonexport', 'ejsonexport'))``
> 
> diffstat:
> 
>  web/views/json.py       |  34 ++++++++++++++++++++++++++++++++--
>  web/views/management.py |  21 +++++++++++++--------
>  2 files changed, 45 insertions(+), 10 deletions(-)
> 
why did this go in a stable branch and without a corresponding ticket?
:(

Julien



More information about the Cubicweb mailing list