def __new__(cls, regex, connector, condition=None, regexOnLogger=False): inst = LIP.__new__(cls, regex, None, None, regexOnLogger) inst.connector = connector inst.condition = condition inst.Name = "To Growl" inst.DetailsInfo = "%s - %s" % (inst.Name, regex) return inst
def __new__(cls, regex): inst = LIP.__new__(cls, regex, None, None, False) inst.Name = "To file" inst.DetailsInfo = "%s - %s" % (inst.Name, regex) return inst