Added missing Handle in to_struct in refbase

This commit is contained in:
Doug Blank 2013-12-24 09:28:37 -05:00
parent a72c6eac96
commit ce07c7e15f

View File

@ -70,7 +70,8 @@ class RefBase(object):
:returns: Returns a struct containing the data of the object.
:rtype: str
"""
return self.ref
## Return name of referenced item (remove "Ref" from name)
return Handle(self.__class__.__name__[:-3], self.ref)
@classmethod
def from_struct(cls, struct):