'Called whenever this terminal has been disconnected from another. (note--this function is called on both terminals)'

def disconnected(self, term):

    if (self.isMultiValue() and (term in self._value)):
        del self._value[term]
        self.node().update()
    elif self.isInput():
        self.setValue(None)
    self.node().disconnected(self, term)
