Ejemplo 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
Ejemplo 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
Ejemplo n.º 3
0
    def _clear_(self):

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

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

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

        link = RefList._removeRef(self, other)
        PersistentRefs._removeRef(self, other._uuid, link)
Ejemplo 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)
Ejemplo n.º 8
0
    def _clear_(self):

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

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

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

        link = RefList._removeRef(self, other)
        PersistentRefs._removeRef(self, other._uuid, link)
Ejemplo 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)