DataPipeline/Base.py
def doImport(self, lines=None):
        """Import file with current setting and return a dict"""

        if lines == None:
            if self.lines != None:
                lines=self.lines
            else:
                print 'no file loaded'
                return None

        try:
            data = self.importer.doImport(lines)
        except Exception, e:
            print 'Importer returned an error:'
            print e
            #debugging
            import traceback
            tr = sys.exc_info()[2]
            traceback.print_tb(tr)
            data = {}
        self.checkImportedData(data)
        return data
Import file with current setting and return a dict
Import file with current setting and return a dict
Import file with current setting and return a dict
def doImport(self, lines=None):
        if lines == None:
            if self.lines != None:
                lines=self.lines
            else:
                print 'no file loaded'
                return None
        try:
            data = self.importer.doImport(lines)
        except Exception, e:
            print 'Importer returned an error:'
            print e
            import traceback
            tr = sys.exc_info()[2]
            traceback.print_tb(tr)
            data = {}
        self.checkImportedData(data)
        return data
def doImport ( self , lines = None ) : if lines == None : if self . lines != None : lines = self . lines else : print 'no file loaded' return None try : data = self . importer . doImport ( lines ) except Exception , e : print 'Importer returned an error:' print e import traceback tr = sys . exc_info ( ) [ 2 ] traceback . print_tb ( tr ) data = { } self . checkImportedData ( data ) return data
Import file with current setting and return a dict
Import file with current setting and return a dict
"""Import file with current setting and return a dict""" #debugging
self
lines