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 |
# |
# |
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" |
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 |