]> review.fuel-infra Code Review - openstack-build/neutron-build.git/commit
Implements data-driven views and extended attributes.
authorBob Kukura <rkukura@redhat.com>
Mon, 16 Jul 2012 00:45:25 +0000 (20:45 -0400)
committerBob Kukura <rkukura@redhat.com>
Mon, 23 Jul 2012 03:46:46 +0000 (23:46 -0400)
commita01ca27a88bfc7bdc6913580700315a7789e5a70
treeb2d4d2ddb9b6a6b0e00594450cc84e37f28b75e3
parent73ec08b7fc88cb30ab449ba9e05e0818a4b5b78e
Implements data-driven views and extended attributes.

The quantum/api/v2/views.py module is replaced by is_visible
properties in the RESOURCE_ATTRIBUTE_MAP defined in
quantum/api/v2/attributes.py. Extensions are given the ability to add
extended attribute descriptions to this map during initialization,
allowing extended attributes to be implemented similarly to core
attributes in plugins.

Resolves bug 1023111.

Change-Id: Ic6e224d5d841b6a1d4d1c762d7306adaf91f7a2d
quantum/api/v2/attributes.py
quantum/api/v2/base.py
quantum/api/v2/router.py
quantum/api/v2/views.py [deleted file]
quantum/extensions/extensions.py
quantum/tests/unit/extensions/v2attributes.py [new file with mode: 0644]
quantum/tests/unit/test_api_v2.py