Exemplo n.º 1
0
 def setUp(self):
     self.barcodefiles = glob(os.path.join(barcode_dir, '*.xls'))
     self.samplebarcodes = protobarcodes
     self.studentfiles = glob(os.path.join(student_dir, '*.xls'))
     self.barcodecsv = [get_new_extension(i,'.csv') for i in self.barcodefiles]
     self.studentcsv = [get_new_extension(i,'.csv') for i in self.studentfiles]
     self.metadata = {'barcodefiles': self.barcodefiles,
                      'studentfiles': self.studentfiles,}
Exemplo n.º 2
0
 def __init__(self, barcode_dir, student_dir, outfile):
     """Convert input data (excel files) into csv
     files. barcode_dir and student_dir contain the Student ID
     system files (barcodes) and the Student Information System
     files respectively. Patron MARC records will be written to
     outfile."""
     log.info('Running with barcode files from %s' % (barcode_dir,))
     log.info('Running with student files from %s' % (student_dir,))
     self.barcodefiles = glob(os.path.join(barcode_dir, '*.xls'))
     log.info("Barcodes: %s" % (self.barcodefiles,))
     self.studentfiles = glob(os.path.join(student_dir, '*.xls'))
     log.info("Student Records: %s" % (self.studentfiles,))
     self.outfile = outfile
     self.barcodecsv = [get_new_extension(i,'.csv') for i in self.barcodefiles]
     self.studentcsv = [get_new_extension(i,'.csv') for i in self.studentfiles]
     self.metadata = {'barcodefiles': self.barcodefiles,
                      'studentfiles': self.studentfiles,}
Exemplo n.º 3
0
 def __init__(self, barcode_dir, student_dir, outfile):
     """Convert input data (excel files) into csv
     files. barcode_dir and student_dir contain the Student ID
     system files (barcodes) and the Student Information System
     files respectively. Patron MARC records will be written to
     outfile."""
     log.info('Running with barcode files from %s' % (barcode_dir, ))
     log.info('Running with student files from %s' % (student_dir, ))
     self.barcodefiles = glob(os.path.join(barcode_dir, '*.xls'))
     log.info("Barcodes: %s" % (self.barcodefiles, ))
     self.studentfiles = glob(os.path.join(student_dir, '*.xls'))
     log.info("Student Records: %s" % (self.studentfiles, ))
     self.outfile = outfile
     self.barcodecsv = [
         get_new_extension(i, '.csv') for i in self.barcodefiles
     ]
     self.studentcsv = [
         get_new_extension(i, '.csv') for i in self.studentfiles
     ]
     self.metadata = {
         'barcodefiles': self.barcodefiles,
         'studentfiles': self.studentfiles,
     }