Esempio n. 1
0
    def resolveAlias(self, alias, load=True):

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

        return key
Esempio n. 2
0
    def resolveAlias(self, alias, load=True):

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

        return key
Esempio n. 3
0
    def _clear_(self):

        RefList._clear_(self)
        PersistentRefs._setItem(self, self._item)
Esempio n. 4
0
    def _copy_(self, orig):

        RefList._copy_(self, orig)
        PersistentRefs._copy_(self, orig)
Esempio n. 5
0
    def _setItem(self, item):

        RefList._setItem(self, item)
        PersistentRefs._setItem(self, item)
Esempio n. 6
0
    def _removeRef(self, other):

        link = RefList._removeRef(self, other)
        PersistentRefs._removeRef(self, other._uuid, link)
Esempio n. 7
0
    def __init__(self, view, item, name, otherName, readOnly, new, uuid):

        self.uuid = uuid or UUID()

        PersistentRefs.__init__(self, view)
        RefList.__init__(self, item, name, otherName, readOnly, new)
Esempio n. 8
0
    def _clear_(self):

        RefList._clear_(self)
        PersistentRefs._setItem(self, self._item)
Esempio n. 9
0
    def _copy_(self, orig):

        RefList._copy_(self, orig)
        PersistentRefs._copy_(self, orig)
Esempio n. 10
0
    def _setItem(self, item):

        RefList._setItem(self, item)
        PersistentRefs._setItem(self, item)
Esempio n. 11
0
    def _removeRef(self, other):

        link = RefList._removeRef(self, other)
        PersistentRefs._removeRef(self, other._uuid, link)
Esempio n. 12
0
    def __init__(self, view, item, name, otherName, readOnly, new, uuid):

        self.uuid = uuid or UUID()

        PersistentRefs.__init__(self, view)
        RefList.__init__(self, item, name, otherName, readOnly, new)