def __init__(self, namespace, name, wrappedObject=None, resRefID=str(uuid4())): self._namespace = namespace self._name = name self._log = SimpleLogAdapter(self._log, { "ResName": self.fullName, "ResRefID": resRefID }) self.__wrappedObject = wrappedObject if wrappedObject is not None: self.__wrapObj() self.autoRelease = True self._isValid = True self._syncRoot = misc.RWLock()
def __init__(self): self._syncRoot = misc.RWLock() self._namespaces = {}