844033a5d1
By registering functions directly we cut off the dependency of the query hooks on the plugin. This is a step towards the goal of removing the CommonDbMixin mixin class. Also, we register all query hooks at plugin create (in __new__) instead of in the class definition (which caused the hooks to be registered on import). This ensures the query hooks are only registered for the plugins/mixins that are actually used. Since the query hooks are decoupled from the plugin, we remove them from the extension mixins (make them global in their module). This is a step towards refactoring all extension mixins for removal. Extra: In this patch we also remove the CommonDbMixinHooksFixture test fixture and instead just clear out the hooks after each test. Related-Blueprint: neutron-lib Change-Id: Ib6c2134d29e1764de627c3355f6cdee789d6301e |
||
---|---|---|
.. | ||
__init__.py | ||
timestamp_db.py | ||
timestamp_plugin.py |