neutron/neutron/services/timestamp
Henry Gessau 844033a5d1 Eliminate lookup of model query hooks by name
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
2017-04-16 10:33:36 -04:00
..
__init__.py Add timestamp for neutron core resources 2016-03-05 02:17:35 +00:00
timestamp_db.py Eliminate lookup of model query hooks by name 2017-04-16 10:33:36 -04:00
timestamp_plugin.py Eliminate lookup of model query hooks by name 2017-04-16 10:33:36 -04:00