Example #1
0
 def __init__(self, next_filter,
              comment_begin=COMMENT_BEGIN,
              comment_end=COMMENT_END,
              separator=SEPARATOR,
              paren_begin=PAREN_BEGIN,
              paren_end=PAREN_END,
              quote=QUOTE,
              escape=ESCAPE):
   AbstractFilter.__init__(self, next_filter)
   self.comment_begin = comment_begin
   self.comment_end = comment_end
   self.separator = separator
   self.paren_begin = paren_begin
   self.paren_end = paren_end
   self.quote = quote
   self.escape = escape
   self.special = comment_begin + separator + paren_begin + paren_end + quote + escape
   self.reset()
   return
Example #2
0
 def __init__(self, next_filter,
              comment_begin=COMMENT_BEGIN,
              comment_end=COMMENT_END,
              separator=SEPARATOR,
              paren_begin=PAREN_BEGIN,
              paren_end=PAREN_END,
              quote=QUOTE,
              escape=ESCAPE):
   AbstractFilter.__init__(self, next_filter)
   self.comment_begin = comment_begin
   self.comment_end = comment_end
   self.separator = separator
   self.paren_begin = paren_begin
   self.paren_end = paren_end
   self.quote = quote
   self.escape = escape
   self.special = comment_begin + separator + paren_begin + paren_end + quote + escape
   self.reset()
   return
Example #3
0
 def close(self):
   AbstractFilter.close(self)
   self.terminate()
   return
Example #4
0
 def close(self):
     AbstractFilter.close(self)
     self.terminate()
     return
Example #5
0
 def __init__(self, next_filter):
     AbstractFilter.__init__(self, next_filter)
     return
Example #6
0
 def close(self):
     self.feed(None)
     AbstractFilter.close(self)
     return
Example #7
0
 def __init__(self, dict, next_filter):
     AbstractFilter.__init__(self, next_filter)
     self.dict = dict
     return
Example #8
0
 def __init__(self, next_filter):
   AbstractFilter.__init__(self, next_filter)
   return
Example #9
0
 def __init__(self, next_filter, warntypes, debug_action=False):
   AbstractFilter.__init__(self, next_filter)
   self.actionset = ParsePatternActionSet(self.notify, warntypes, debug_action)
   self.warntypes = warntypes
   return
Example #10
0
 def close(self):
   self.feed(None)
   AbstractFilter.close(self)
   return
Example #11
0
 def __init__(self, dict, next_filter):
   AbstractFilter.__init__(self, next_filter)
   self.dict = dict
   return