Decorator content does too many different actions, so
let's split it into 3 decorators: @handle_errors,
@validate and @serialize. We can skip calling @serialize
in many places, because those methods just raise some
http error.
Also I've changed return value of all handlers from
serialized json (string) to python's structures, lists
and dicts. So It's become possible to implement different
serializers and I've added support for YAML output.
Reviewed: https:/ /review. openstack. org/346957 /git.openstack. org/cgit/ openstack/ fuel-web/ commit/ ?id=6e31938a0ff f264200ddad235e d57398d3ffcb02
Committed: https:/
Submitter: Jenkins
Branch: master
commit 6e31938a0fff264 200ddad235ed573 98d3ffcb02
Author: Dmitry Guryanov <email address hidden>
Date: Mon Aug 22 11:46:32 2016 +0300
Split @content decorator
Decorator content does too many different actions, so
let's split it into 3 decorators: @handle_errors,
@validate and @serialize. We can skip calling @serialize
in many places, because those methods just raise some
http error.
Also I've changed return value of all handlers from
serialized json (string) to python's structures, lists
and dicts. So It's become possible to implement different
serializers and I've added support for YAML output.
Change-Id: Ia3da3bd809bcca 923d53666eca54d ef78c995f65
Closes-Bug: #1606211