Commit 960484db authored by Michael Büsch's avatar Michael Büsch

refmanager: Add property to check for active reference

Signed-off-by: Michael Büsch's avatarMichael Buesch <[email protected]>
parent 3dc977de
......@@ -118,6 +118,12 @@ class ObjRefManager(object):
return self.__name(self)
return self.__name
def hasReferences(self):
"""Returns true, if this manager holds references.
return bool(self.__refs)
def _addRef(self, objRef):
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment