Ejemplo n.º 1
0
 def __init__(self, job, filename, main_depth=None, main_tag=None,
         tags=None, encoding=None):
     FileInput.__init__(self, job, filename, encoding)
     
     if not main_depth and not main_tag and not tags:
         main_depth, main_tag, tags = XMLDetector.detect(self.get_fh())
     self.main_depth = main_depth
     self.main_tag = main_tag
     self.tags = tags
Ejemplo n.º 2
0
 def __init__(self, job, filename, encoding=None, dialect=None,
         has_headers=None):
     FileInput.__init__(self, job, filename, encoding)
     self.reader = None
     self.encoding = None
     self.headers = None
     self.job = job
     self.set_filename(filename)
     self.set_encoding(encoding)
     self.set_dialect(dialect)
     self.set_has_headers(has_headers)
Ejemplo n.º 3
0
    def __init__(self,
                 job,
                 filename,
                 main_depth=None,
                 main_tag=None,
                 tags=None,
                 encoding=None):
        FileInput.__init__(self, job, filename, encoding)

        if not main_depth and not main_tag and not tags:
            main_depth, main_tag, tags = XMLDetector.detect(self.get_fh())
        self.main_depth = main_depth
        self.main_tag = main_tag
        self.tags = tags
Ejemplo n.º 4
0
 def __init__(self,
              job,
              filename,
              encoding=None,
              dialect=None,
              has_headers=None):
     FileInput.__init__(self, job, filename, encoding)
     self.reader = None
     self.encoding = None
     self.headers = None
     self.job = job
     self.set_filename(filename)
     self.set_encoding(encoding)
     self.set_dialect(dialect)
     self.set_has_headers(has_headers)