Ejemplo n.º 1
0
 def append(self, record):
     """Append ``record`` to the database."""
     record.index = self.header.recordCount
     record._write()
     self.header.recordCount += 1
     self._changed = True
     self._new = False
Ejemplo n.º 2
0
Archivo: dbf.py Proyecto: lopuhin/dbfpy
 def append(self, record):
     """Append ``record`` to the database."""
     record.index = self.header.recordCount
     record._write()
     self.header.recordCount += 1
     self._changed = True
     self._new = False
Ejemplo n.º 3
0
 def __setitem__(self, index, record):
     """Write `DbfRecord` instance to the stream."""
     record.index = self._fixIndex(index)
     record._write()
     self._changed = True
     self._new = False
Ejemplo n.º 4
0
Archivo: dbf.py Proyecto: lopuhin/dbfpy
 def __setitem__(self, index, record):
     """Write `DbfRecord` instance to the stream."""
     record.index = self._fixIndex(index)
     record._write()
     self._changed = True
     self._new = False