]> review.fuel-infra Code Review - openstack-build/neutron-build.git/commit
allow subclasses to modify the parents model hooks
authorMark McClain <mark.mcclain@dreamhost.com>
Fri, 9 Aug 2013 04:53:33 +0000 (00:53 -0400)
committerMark McClain <mark.mcclain@dreamhost.com>
Fri, 9 Aug 2013 04:53:33 +0000 (00:53 -0400)
commit3f3346e598cc6418a5dae18776810f62d6f5375a
tree78abb38b98a7351ddefbc73cdd2919bef04646fc
parentfd1c78a81582b0e6d56af070c8d978fd53e3b15b
allow subclasses to modify the parents model hooks

fixes bug 1210387

This change modifies the model hook processing to call the method on the
instance if a hook is registered as a string.  If the hook is a
callable, then callable is called with the hook arguments.

Change-Id: Id14ae89f3f12a500920d248226e0ecba8e35e74c
neutron/db/db_base_plugin_v2.py
neutron/db/l3_db.py
neutron/db/portbindings_db.py