Fixed instance getter using _root.

This commit is contained in:
Syrus Akbary 2015-11-19 20:00:10 -08:00
parent d6a5269f0b
commit 0d4164648f

View File

@ -49,6 +49,14 @@ class InstanceObjectType(BaseObjectType):
))
super(InstanceObjectType, self).__init__(_root=_root)
@property
def instance(self):
return self._root
@instance.setter
def instance(self, value):
self._root = value
def __getattr__(self, attr):
return getattr(self._root, attr)