]> review.fuel-infra Code Review - openstack-build/neutron-build.git/commit
common_db_mixin.py: simplify CommonDbMixin
authorIsaku Yamahata <isaku.yamahata@intel.com>
Mon, 22 Sep 2014 03:05:13 +0000 (12:05 +0900)
committerIsaku Yamahata <isaku.yamahata@intel.com>
Tue, 20 Jan 2015 01:53:04 +0000 (17:53 -0800)
commit70236654b7c8b57783c48661ee9cc35e47528fcc
treea141fc778b3a0831c15bbe376c0646f9d9e4b2e4
parentb585715ab7ea000ec7ee5f7d2226b357e2777539
common_db_mixin.py: simplify CommonDbMixin

Simplfy register_model_query_hook() and register_dict_extend_funcs().
Move register_dict_extend_funcs() into CommonDbMixin attribute
because the related class attribute, _dict_extend_functions, is
defined in CommonDbMixin. They should be defined in same class.

Change-Id: Ib7b6df0c236f1d0804941147cc7cd7902a611311
neutron/db/common_db_mixin.py
neutron/db/db_base_plugin_v2.py