Exemple #1
0
    def __init__(self, view, item, name, otherName, dictKey,
                 readOnly, new, uuid):

        self.uuid = uuid or UUID()

        PersistentRefs.__init__(self, view)
        RefList.__init__(self, view, item, name, otherName, dictKey, readOnly,
                         (CLinkedMap.NEW if new else 0) | CLinkedMap.LOAD)
Exemple #2
0
    def _removeRef_(self, other):

        link = RefList._removeRef_(self, other)
        if link is not None:
            link = PersistentRefs._removeRef_(self, other.itsUUID, link)

        return link
Exemple #3
0
    def resolveAlias(self, alias, load=True):

        key = RefList.resolveAlias(self, alias, load)
        if key is None and load and not self._flags & CLinkedMap.NEW:
            key = PersistentRefs.resolveAlias(self, alias, load)

        return key
Exemple #4
0
    def _setOwner(self, item, name):

        RefList._setOwner(self, item, name)
        PersistentRefs._setItem(self, item)