def handle(self, *args, **options):
        start_date = date(2013,6,16)
        end_date = date(2013,6,18)
        one_day = timedelta(days=1)
        
        
        this_date = start_date
        while (this_date < end_date):
            datestring = this_date.strftime("%Y%m%d")
            entry_time = datetime(this_date.year, this_date.month, this_date.day, 7,0)
            print "datestring %s" % (datestring)
            this_date += one_day            
            filing_info = None
            try:
                filing_info = filerange[datestring]
            except __HOLE__:
                print "Missing data for %s" % datestring
                continue
            
            #print filing_info
            thisfilerange=range(int(filing_info['first']), 1+int(filing_info['last']))
            #thisfilerange=['868338']
            for filenum in thisfilerange:
                
                # see if the file is downloaded, and if it isn't just ignore it. Some numbers are skipped; our assumption here is that we're entering files that have come from a zipfile. 
                
                local_file_location = FILECACHE_DIRECTORY + "/" + str(filenum) + ".fec"
                if path.isfile(local_file_location):
                    print "Processing %s" % (filenum)
                    process_filing_header(filenum, fp=fp, filing_time=entry_time, filing_time_is_exact=False)
                else:
                    print "!! missing file %s" % filenum
dataset/ETHPy150Open sunlightlabs/read_FEC/fecreader/formdata/management/commands/enter_headers_from_archive.py/Command.handle