/[thuban]/branches/WIP-pyshapelib-bramz/Thuban/Model/table.py
ViewVC logotype

Diff of /branches/WIP-pyshapelib-bramz/Thuban/Model/table.py

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 283 by bh, Thu Aug 22 16:25:46 2002 UTC revision 284 by bh, Tue Aug 27 14:08:32 2002 UTC
# Line 34  class Table: Line 34  class Table:
34    
35      def __init__(self, filename):      def __init__(self, filename):
36          self.filename = filename          self.filename = filename
37          self.dbf = dbflib.DBFFile(filename, "r+b")          self.dbf = dbflib.DBFFile(filename)
38    
39      def Destroy(self):      def Destroy(self):
40          self.dbf.close()          self.dbf.close()
# Line 76  class Table: Line 76  class Table:
76          If it's a sequence, all fields must be present in the right          If it's a sequence, all fields must be present in the right
77          order.          order.
78          """          """
79          self.dbf.write_record(record, values)          writable_dbf = dbflib.DBFFile(self.filename, "r+b")
80          self.dbf.commit()          writable_dbf.write_record(record, values)
81            writable_dbf.close()

Legend:
Removed from v.283  
changed lines
  Added in v.284

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26