]> review.fuel-infra Code Review - openstack-build/cinder-build.git/commit
All API controllers inherit from wsgi.Controller
authorling-yun <zengyunling@huawei.com>
Tue, 3 Dec 2013 08:19:17 +0000 (16:19 +0800)
committerling-yun <zengyunling@huawei.com>
Wed, 4 Dec 2013 06:53:08 +0000 (14:53 +0800)
commit3b2842bf2df46daf4e4d26695c06963499968181
tree377a5198afb3fd4ab976c87b598b7f52a7e77fd0
parent19a2f99830121d5b70b9129d9fcdc7c88fca969c
All API controllers inherit from wsgi.Controller

Most of the Cinder Public API Controllers inherit from wsgi.Controller,
but still some Cinder Public APIs controllers directly inherit from
object. So it's necessary to unify all the Cinder Public API Controllers
inherit from wsgi.Controller.
1. For code cleanup.
2. When we try to do body valid check in api's put/post method later, we
can use the helper function is_valid_body instead of using try...catch
block.

Change-Id: I88812224e0b182939cfccce63982cb8f95792891
Closes-Bug: #1257198
cinder/api/contrib/hosts.py
cinder/api/contrib/services.py
cinder/api/v1/limits.py
cinder/api/v1/snapshot_metadata.py
cinder/api/v1/volume_metadata.py
cinder/api/v2/limits.py
cinder/api/v2/snapshot_metadata.py
cinder/api/v2/volume_metadata.py