def __init__(self, region, lines, rule, commands, source): Geometry.__init__(self, region, lines) # Subscribe.__init__(self, 'topic') Regex.__init__(self, rule) Database.__init__(self) self.commands = commands self.source_id = source
def __init__(self, value): regex = value.replace("<HOST>", "(?:::f{4,6}:)?(?P<host>\S+)") Regex.__init__(self, regex) if "host" not in self._regexObj.groupindex: raise RegexException("No 'host' group in '%s'" % self._regex)
def __init__(self, regex): Regex.__init__(self, regex) if "host" not in self._regexObj.groupindex: raise RegexException("No 'host' group in '%s'" % self._regex)