def __init__(self, obj, attr): Invalid.__init__(self) self.obj = obj self.attr = attr
def __init__(self, obj, iface): Invalid.__init__(self) self.obj = obj self.iface = iface
def __init__(self, value, allowed): Invalid.__init__(self) self.value = value self.allowed = allowed
def __init__(self, value): Invalid.__init__(self) self.value = value