/[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 589 by jonathan, Wed Mar 5 18:40:03 2003 UTC revision 590 by bh, Wed Apr 2 15:03:19 2003 UTC
# Line 1  Line 1 
1  # Copyright (c) 2001, 2002 by Intevation GmbH  # Copyright (c) 2001, 2002, 2003 by Intevation GmbH
2  # Authors:  # Authors:
3  # Bernhard Herzog <[email protected]>  # Bernhard Herzog <[email protected]>
4  #  #
# Line 12  Classes for handling tables of data. Line 12  Classes for handling tables of data.
12  __version__ = "$Revision$"  __version__ = "$Revision$"
13    
14  import dbflib  import dbflib
 from Thuban.common import *  
15    
16  # the field types supported by a Table instance.  # the field types supported by a Table instance.
17  FIELDTYPE_INT = "int"  FIELDTYPE_INT = "int"
# Line 39  class Table: Line 38  class Table:
38      # important that Thuban can work with read-only files. Therefore the      # important that Thuban can work with read-only files. Therefore the
39      # DBF file is opened only for reading initially. Only when      # DBF file is opened only for reading initially. Only when
40      # write_record is called we try to open the DBF file for writing as      # write_record is called we try to open the DBF file for writing as
41      # well. If that succeeds the dbf read/write DBF file will be used      # well. If that succeeds the read/write DBF file will be used for
42      # for all IO afterwards.      # all IO afterwards.
43      #      #
44      # It's important to use the same DBF file object for both reading      # It's important to use the same DBF file object for both reading
45      # and writing to make sure that reading a records after writing      # and writing to make sure that reading a records after writing

Legend:
Removed from v.589  
changed lines
  Added in v.590

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26