[openstack-dev] [Trove] Multiple api extension paths
boden at linux.vnet.ibm.com
Mon Apr 28 19:20:35 UTC 2014
I have a few small features / enhancements I'd like to suggest. I'm
willing to contribute the code / unit tests myself, but am looking for a
consensus from the group before I invest the time.
There are a few enhancements on my list -- I will send details each in a
separate email to keep the communication clearer.
I'd like to propose that trove supports the ability to have multiple API
extension paths. The current impl of trove supports the ability to
specify the api extension path . This path is obviously searched at
start-up and extensions found are loaded / added to trove API. However
if consumers want to plug-in their own API extensions they have to copy
them into the trove python path specified by  as this is a string
property only accepting a single path .
I was thinking something like the following:
(a) Change the api_extensions_path to a comma list rather than just a
(b) Default the value to ['trove/extensions/routes'] for backwards
(c) Update trove.common.extensions.py to support an array of api
extension paths  such that each path is used in the extension mgmt /
This would allow consumers to plug-in API extensions without having to
inject their extension classes / code in the same python dist path as
trove while still maintaining the existing trove 'core' extensions.
Any disagreement / comments on this enhancement? Again -- I can
contribute the code, unless someone is bored and wants to run with it
More information about the OpenStack-dev