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 <m@bues.ch>
parent 3dc977de
......@@ -118,6 +118,12 @@ class ObjRefManager(object):
return self.__name(self)
return self.__name
@property
def hasReferences(self):
"""Returns true, if this manager holds references.
"""
return bool(self.__refs)
def _addRef(self, objRef):
self.__refs.add(objRef)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment