1 |
|
2002-08-27 Bernhard Herzog <[email protected]> |
2 |
|
|
3 |
|
* Thuban/Model/table.py (Table.write_record, Table.__init__): Open |
4 |
|
dbf files only for reading by default. Use a new writable dbf |
5 |
|
object for writing. |
6 |
|
|
7 |
|
2002-08-26 Bernhard Herzog <[email protected]> |
8 |
|
|
9 |
|
* Thuban/UI/mainwindow.py: Refactor the context creation: |
10 |
|
(MainWindow.Context): New method to return a context |
11 |
|
(MainWindow.invoke_command, MainWindow.update_command_ui): Use the |
12 |
|
new method |
13 |
|
|
14 |
|
* Thuban/UI/tableview.py (TableGrid, LayerTableGrid): Split the |
15 |
|
layer table specific code from TableGrid into LayerTableGrid |
16 |
|
(TableFrame, LayerTableFrame): Split the layer table specific code |
17 |
|
from TableFrame into LayerTableFrame |
18 |
|
(LayerTableGrid.select_shape): Remove a debug print |
19 |
|
|
20 |
|
* Thuban/UI/mainwindow.py (MainWindow.LayerShowTable): Use the |
21 |
|
LayerTableFrame |
22 |
|
|
23 |
|
2002-08-23 Bernhard Herzog <[email protected]> |
24 |
|
|
25 |
|
* Thuban/Model/layer.py (Layer.__init__): Make sure we have an |
26 |
|
absolute filename. |
27 |
|
|
28 |
|
2002-08-22 Bernhard Herzog <[email protected]> |
29 |
|
|
30 |
|
* Thuban/Model/table.py (Table.write_record): New method to write |
31 |
|
records. |
32 |
|
(Table.__init__): Open the DBF file for writing too. |
33 |
|
|
34 |
|
* Thuban/UI/controls.py (RecordTable.SetValue): Write the value |
35 |
|
into the underlying table. |
36 |
|
|
37 |
|
* extensions/shapelib/shapefil.h (DBFCommit), |
38 |
|
extensions/shapelib/dbfopen.c (DBFCommit): New API function to |
39 |
|
commit any changes made to the DBF file. |
40 |
|
|
41 |
|
* Thuban/UI/mainwindow.py (make_check_current_tool) |
42 |
|
(_tool_command): Put the code that generates the "checked" |
43 |
|
callback into a separate function so that we can reuse it |
44 |
|
elsewhere |
45 |
|
|
46 |
|
* Thuban/Model/save.py (Saver): New class to handle serializing a |
47 |
|
session into an XML file. The main reason to introduce a class is |
48 |
|
that applications built on Thuban can derive from it so that they |
49 |
|
can save additional information in a session file. |
50 |
|
(save_session): Delegate almost all the work to the Saver class. |
51 |
|
Rename the filename argument to file because it may be a file like |
52 |
|
object now. |
53 |
|
|
54 |
|
* Thuban/Model/load.py: Get rid of the Python 1.5.2 compatibility |
55 |
|
code. Remove the little test code which would be executed when the |
56 |
|
module is run as a script which didn't work anymore since it can't |
57 |
|
import the other Thuban modules. |
58 |
|
(ProcessSession, load_session): Refactor the ProcessSession to |
59 |
|
have one method for each element start and end tag so that derived |
60 |
|
classes can easily override the processing of individual tags. |
61 |
|
Also, always parse with namespaces enabled because applications |
62 |
|
built on top of Thuban will likely use namespaces if they extend |
63 |
|
the session file format. |
64 |
|
|
65 |
2002-08-21 Bernhard Herzog <[email protected]> |
2002-08-21 Bernhard Herzog <[email protected]> |
66 |
|
|
67 |
* setup.py (ThubanInstall.run): Don't repr install_lib_orig |
* setup.py (ThubanInstall.run): Don't repr install_lib_orig |