Example #1
0
 def __init__(self, name=None, command=None, pattern="<~filename>",
              unique=False, parameter=None, max_args=10000,
              warn_threshold=100):
     JSONObject.__init__(self, name)
     self.command = str(command or "")
     self.pattern = str(pattern)
     self.unique = bool(unique)
     self.max_args = max_args
     self.parameter = str(parameter or "")
     self.__pat = Pattern(self.pattern)
     self.warn_threshold = warn_threshold
 def __init__(self, name=None, pattern=None, wibble=False):
     JSONObject.__init__(self, name)
     self.pattern = pattern
     self.wibble = wibble
     self._dont_wibble = not wibble