diff options
| author | Cole Robinson <crobinso@redhat.com> | 2012-01-23 11:29:24 -0500 |
|---|---|---|
| committer | Cole Robinson <crobinso@redhat.com> | 2012-01-24 13:30:23 -0500 |
| commit | fefb88877c6d6f00626df747eb0172484c16f0ec (patch) | |
| tree | ce132ed4c2f86517d8caccd907e4f01968ae124d /plugins | |
| parent | 3ad3292efd7fcba7b58bc9c8b1cb84e8b00a10fa (diff) | |
| download | nova-fefb88877c6d6f00626df747eb0172484c16f0ec.tar.gz nova-fefb88877c6d6f00626df747eb0172484c16f0ec.tar.xz nova-fefb88877c6d6f00626df747eb0172484c16f0ec.zip | |
extensions: Allow registering actions for create + delete
This allows an extension to add new actions for create and delete
operations to an existing collection.
Currently when extending an existing collection (API namespace), an
extension can register brand new 'actions', and extend any preexisting API
functionality, but unfortunately create and delete are special cases that
don't fall under the 'actions' classification, meaning the infrastructure
can't handle them unless extending an existing impl.
Stubbing out the create/delete methods in the original resource with
the equiv of a NotImplementedError doesn't work, since 'extend'ing
requires the original implementation to exit correctly.
Whitelist 'create' and 'delete' and handle them appropriately.
v2:
Add myself to Authors
Update wsgi.action docs
Add a test case
v3:
Actually update Authors
Change-Id: I550ae93c5e200f18644042ac81656bc76dbe8955
Diffstat (limited to 'plugins')
0 files changed, 0 insertions, 0 deletions
