示例#1
0
 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
示例#2
0
	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)
示例#3
0
    def __init__(self, regex):

        Regex.__init__(self, regex)

        if "host" not in self._regexObj.groupindex:
            raise RegexException("No 'host' group in '%s'" % self._regex)