Exemplo n.º 1
0
 def read_stream(self):
   parser = Parser.find_parser(self.input_config)
   parser.read_stream(
           self.input_stream,
           lambda item: GObject.idle_add(self.add_item, item),
           lambda headers: GObject.idle_add(self.set_headers,headers)
           )
Exemplo n.º 2
0
 def __init__(self,config):
   Parser.__init__(self,config) # Base
   if config.has_key('separator'):
     self.separator = config['separator']
   else:
     self.separator = '\s+'
Exemplo n.º 3
0
 def __init__(self,config):
   Parser.__init__(self,config) # Base
   self.headers = None
Exemplo n.º 4
0
 def __init__(self, config):
     Parser.__init__(self, config)  # Base