1 |
|
2003-10-08 Jan-Oliver Wagner <[email protected]> |
2 |
|
|
3 |
|
* Thuban/Model/resource.py (get_user_proj_file): small bug-fix: |
4 |
|
Added missing 'val' parameter. |
5 |
|
|
6 |
|
2003-10-08 Bernhard Herzog <[email protected]> |
7 |
|
|
8 |
|
* Thuban/UI/projdialog.py (ProjFrame.__DoOnProjAvail): When the |
9 |
|
projection type of the currently selected projection is not known, |
10 |
|
i.e. there's no panel for it, use the UnknownProjPanel |
11 |
|
(ProjFrame.__DoOnProjChoice, ProjFrame._show_proj_panel): Split |
12 |
|
the actual replacing of the proj panel into the new method |
13 |
|
_show_proj_panel. |
14 |
|
(UnknownProjPanel): Add doc-string. |
15 |
|
(UnknownProjPanel._DoLayout): Insert a newline into the text so |
16 |
|
that the panel is not so wide. |
17 |
|
|
18 |
|
2003-10-08 Bernhard Herzog <[email protected]> |
19 |
|
|
20 |
|
* Thuban/Model/resource.py (read_proj_file): Return the warnings |
21 |
|
too. Update the doc-string |
22 |
|
(get_proj_files): Removed. It wasn't used anywhere |
23 |
|
(get_system_proj_files, get_system_proj_file): Rename to |
24 |
|
get_system_proj_file and return the ProjFile object and not a list |
25 |
|
of ProjFile objects. Update the callers. |
26 |
|
(get_user_proj_files, get_user_proj_file): Rename to |
27 |
|
get_user_proj_file return the ProjFile object and not a list of |
28 |
|
ProjFile objects. Update the callers. |
29 |
|
(ProjFileReader.__init__): New instance variable for the warnings. |
30 |
|
Rename the __pf ivar to projfile. Update the methods referring to |
31 |
|
__pf |
32 |
|
(ProjFileReader.end_projection): Catch any errors raised when |
33 |
|
instantiating the projection and record that as an error. The |
34 |
|
projection will not be in the final ProjFile object. |
35 |
|
(ProjFileReader.GetWarnings): New method to return the warnings. |
36 |
|
|
37 |
|
* Thuban/UI/projdialog.py (ProjFrame.show_warnings): New method to |
38 |
|
show the warnings from the projfile reader |
39 |
|
(ProjFrame._OnImport): Deal with any warnings returned by |
40 |
|
read_proj_file |
41 |
|
(ProjFrame.__FillAvailList): Deal with any warnings returned by |
42 |
|
get_system_proj_file or get_user_proj_file. |
43 |
|
|
44 |
|
* test/test_proj.py (TestProjFile.doTestRead): Check the warnings. |
45 |
|
(TestProjFileWithInvalidParameters.file_contents): New test cases |
46 |
|
to test whether read_proj_file handles invalid projection |
47 |
|
parameters correctly |
48 |
|
(TestProjFile.test_get_system_proj_file): New. Simple test for |
49 |
|
resource.get_system_proj_file |
50 |
|
|
51 |
|
2003-10-07 Bernhard Herzog <[email protected]> |
52 |
|
|
53 |
|
* test/test_derivedshapestore.py |
54 |
|
(TestDerivedShapeStoreExceptions.tearDown): Clear the session |
55 |
|
properly so that the temporary directories get deleted correctly |
56 |
|
|
57 |
|
2003-10-06 Bernhard Herzog <[email protected]> |
58 |
|
|
59 |
|
Handle the title changes in a proper MVC way. |
60 |
|
|
61 |
|
* Thuban/UI/mainwindow.py (MainWindow.__init__): Subscribe to the |
62 |
|
canvas' TITLE_CHANGED messages |
63 |
|
(MainWindow.update_title): New. Update the main window's title |
64 |
|
(MainWindow.__SetTitle): Removed. Use update_title instead. |
65 |
|
(MainWindow.SetMap): Use update_title instead of __SetTitle |
66 |
|
(MainWindow.RenameMap): Do change the window title explicitly |
67 |
|
here. That's handled in a proper MVC way now. |
68 |
|
(MainWindow.title_changed): New. Subscriber for the TITLE_CHANGED |
69 |
|
messages |
70 |
|
|
71 |
|
* Thuban/Lib/connector.py (Conduit): New class to help classes |
72 |
|
that forward messages |
73 |
|
|
74 |
|
* Thuban/UI/viewport.py: Forward the map's TITLE_CHANGED messages |
75 |
|
(ViewPort): Derive from Conduit instead of Publisher |
76 |
|
(ViewPort.Subscribe, ViewPort.Unsubscribe): Use the new base class |
77 |
|
when calling the inherited versions |
78 |
|
(ViewPort._subscribe_map, ViewPort._unsubscribe_map): New helper |
79 |
|
methods to subscribe and unsubscribe map messages |
80 |
|
(ViewPort.SetMap, ViewPort.Destroy): Use the new helper methods to |
81 |
|
handle the map subscriptions |
82 |
|
(ViewPort.Map, ViewPort.map_projection_changed) |
83 |
|
(ViewPort.layer_projection_changed): Add or update doc-strings |
84 |
|
|
85 |
|
* test/test_connector.py (TestPublisher.test_issue_simple): Fix |
86 |
|
typo |
87 |
|
(MyConduit): Helper class for the Conduit test. |
88 |
|
(TestConduit): Test cases for Conduit |
89 |
|
|
90 |
|
* test/test_connector.py: Use support.run_tests as main. |
91 |
|
|
92 |
|
* test/test_viewport.py (ViewPortTest.setUp): Also subscribe to |
93 |
|
the TITLE_CHANGED messages |
94 |
|
(ViewPortTest.test_forwarding_title_changed): New test to check |
95 |
|
whether the viewport forwards the map's TITLE_CHANGED messages |
96 |
|
(TestViewportWithPostGIS.tearDown): Call the map's Destroy method |
97 |
|
after the port's because the latter may require a still functional |
98 |
|
map. |
99 |
|
|
100 |
|
2003-10-06 Bernhard Herzog <[email protected]> |
101 |
|
|
102 |
|
* Thuban/UI/application.py (ThubanApplication.maps_changed): Add |
103 |
|
doc-string |
104 |
|
|
105 |
|
2003-10-06 Bernhard Herzog <[email protected]> |
106 |
|
|
107 |
|
* test/test_viewport.py (ViewPortTest.setUp) |
108 |
|
(SimpleViewPortTest.test_init_with_size): Move the test for the |
109 |
|
initial size as a constructor parameter from ViewPortTest.setUp |
110 |
|
method to a new separate test in SimpleViewPortTest. |
111 |
|
|
112 |
|
2003-10-06 Bernhard Herzog <[email protected]> |
113 |
|
|
114 |
|
* test/test_viewport.py (MockView): New class derived from |
115 |
|
ViewPort with a mock implementation of GetTextExtent to be used in |
116 |
|
the test cases |
117 |
|
(ViewPortTest.setUp): Use MockView instead of ViewPort |
118 |
|
|
119 |
|
* Thuban/UI/viewport.py (ViewPort.GetTextExtent): Turn this method |
120 |
|
into what would be a "pure virtual function" in C++: always raise |
121 |
|
NotImplementedError. Mock implementations for test cases don't |
122 |
|
belong into the real code |
123 |
|
|
124 |
|
2003-10-02 Bernhard Herzog <[email protected]> |
125 |
|
|
126 |
|
* test/test_layer.py (TestLayer.test_empty_layer): Explicitly |
127 |
|
close the dbf file we create so that it's contents have been |
128 |
|
written properly. |
129 |
|
|
130 |
|
* libraries/shapelib/shptree.c, libraries/shapelib/shpopen.c, |
131 |
|
libraries/shapelib/shapefil.h, libraries/shapelib/dbfopen.c: |
132 |
|
Update to shapelib 1.2.10 |
133 |
|
|
134 |
|
2003-10-01 Jan-Oliver Wagner <[email protected]> |
135 |
|
|
136 |
|
* Thuban/UI/tree.py, Thuban/UI/main.py: Remove the #! line as |
137 |
|
it annoys lintian which warns about these files not being |
138 |
|
executable. The #! isn't necessary here since if you absolutely |
139 |
|
must execute them you can always say "python <filename>". |
140 |
|
|
141 |
2003-09-26 Bernhard Herzog <[email protected]> |
2003-09-26 Bernhard Herzog <[email protected]> |
142 |
|
|
143 |
* Thuban/Model/classgen.py (GenQuantiles0): Removed since it's |
* Thuban/Model/classgen.py (GenQuantiles0): Removed since it's |
1561 |
|
|
1562 |
* Thuban/Model/range.py, Thuban/version.py: Remove the #! line as |
* Thuban/Model/range.py, Thuban/version.py: Remove the #! line as |
1563 |
it annoys lintian which warns about these files not being |
it annoys lintian which warns about these files not being |
1564 |
executable. The #1 isn't necessary here since if you absolutely |
executable. The #! isn't necessary here since if you absolutely |
1565 |
must execute them you can always say "python <filename>". |
must execute them you can always say "python <filename>". |
1566 |
|
|
1567 |
* Thuban/UI/renderer.py (ScreenRenderer.draw_shape_layer): Remove |
* Thuban/UI/renderer.py (ScreenRenderer.draw_shape_layer): Remove |