code: def __dbfRecords(self):
          
          f = self.__getFileObj(self.dbf)
          for record in self.records:
              if not self.fields[0][0].startswith("Deletion"):
                  f.write(b(' ')) # deletion flag
              for (fieldName, fieldType, size, dec), value in zip(self.fields, record):
                  fieldType = fieldType.upper()
                  size = int(size)
                  if fieldType.upper() == "N":
                      value = str(value).rjust(size)
                  elif fieldType == 'L':
                      value = str(value)[0].upper()
                  else:
                      value = str(value)[:size].ljust(size)
                  assert len(value) == size
                  value = b(value)
                  f.write(value)
docs: Writes the dbf records.