Begin the transition to an explicit object registry

In oslo.versionedobjects, the registry is opt-in instead of implicit.
This patch sets the stage for moving to that by defining a no-op
registry with a compatible register method so that we can go ahead and
decorate the object classes and then move the registry underneath them.

Related to blueprint use-oslo-objects

Change-Id: Iddc68a2d8a9b103621bc60a7426fe495edf80aad
This commit is contained in:
Dan Smith
2015-06-02 09:54:45 -07:00
parent 5a1a1b7b71
commit 31a192f2e1
39 changed files with 96 additions and 0 deletions

View File

@@ -17,6 +17,7 @@ from nova.objects import base
from nova.objects import fields
@base.NovaObjectRegistry.register
class CellMapping(base.NovaTimestampObject, base.NovaObject):
# Version 1.0: Initial version
VERSION = '1.0'