def write(self, value):
    if (not getattr(self._modifier, 'isDone', True)):
        return self._modifier.setAttr(self, value)
    try:
        _python_to_plug(value, self)
        self._cached = value
    except RuntimeError:
        raise
    except TypeError:
        log.error(("'%s': failed to write attribute" % self.path()))
        raise
def write(self, value):
    if (not getattr(self._modifier, 'isDone', True)):
        return self._modifier.setAttr(self, value)
    try:
        _python_to_plug(value, self)
        self._cached = value
    except RuntimeError:
        raise
    except TypeError:
        log.error(("'%s': failed to write attribute" % self.path()))
        raise