def do_import(self, **kwargs):
        print 'READING FILE CONTENT'
        for filename in self.FILES:
            fullname = os.path.join(self.dirname, '%s.txt' % filename)
            print fullname
            if not os.path.exists(fullname):
                sys.exit('File %s does not exist' % fullname)

            self.FILES[filename] = csv.DictReader(open(fullname, 'r'))

        print 'PROCESSING DATA'
        for name in self.PROCESSING_ORDER:
            print 'Running create_%s' % name
            getattr(self, 'create_%s' % name)(self.FILES[name], **kwargs)
dataset/ETHPy150Open shaunduncan/breezeminder/breezeminder/management/commands/import_marta_data.py/ImportMartaData.do_import/original