예제 #1
0
파일: dbf.py 프로젝트: tmw-LLC/clv_odoo_api
 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
예제 #2
0
파일: dbf.py 프로젝트: 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
예제 #3
0
파일: dbf.py 프로젝트: tmw-LLC/clv_odoo_api
 def __setitem__(self, index, record):
     """Write `DbfRecord` instance to the stream."""
     record.index = self._fixIndex(index)
     record._write()
     self._changed = True
     self._new = False
예제 #4
0
파일: dbf.py 프로젝트: 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