1 |
|
2003-10-14 Bernhard Herzog <bh@intevation.de> |
2 |
|
|
3 |
|
* test/test_proj.py: Execute support.run_tests when run as |
4 |
|
__main__ so that missing unsubscribes are detected |
5 |
|
(TestProjFile.tearDown): Destroy the proj_file properly |
6 |
|
|
7 |
|
2003-10-14 Bernhard Herzog <bh@intevation.de> |
8 |
|
|
9 |
|
* Thuban/Model/messages.py (PROJECTION_ADDED) |
10 |
|
(PROJECTION_REPLACED, PROJECTION_REMOVED): New message types for |
11 |
|
the ProjFile objects |
12 |
|
|
13 |
|
* Thuban/Model/proj.py (ProjFile): Derive from Publisher so we can |
14 |
|
easily send messages when the projections change |
15 |
|
(ProjFile.Add, ProjFile.Remove, ProjFile.Replace): Issue messages |
16 |
|
when the change was successful |
17 |
|
|
18 |
|
* test/test_proj.py (TestProjFile.setUp): Subscribe to some of the |
19 |
|
proj file messages |
20 |
|
(TestProjFile.test_add_remove) |
21 |
|
(TestProjFile.test_remove_non_existing) |
22 |
|
(TestProjFile.test_replace) |
23 |
|
(TestProjFile.test_replace_non_existing): Test whether the right |
24 |
|
messages are sent |
25 |
|
|
26 |
|
2003-10-14 Bernhard Herzog <bh@intevation.de> |
27 |
|
|
28 |
|
* test/test_proj.py (TestProjFile.test): Refactor into several |
29 |
|
tests |
30 |
|
(TestProjFile.test_add_remove) |
31 |
|
(TestProjFile.test_remove_non_existing) |
32 |
|
(TestProjFile.test_replace) |
33 |
|
(TestProjFile.test_replace_non_existing): Some of the new |
34 |
|
individual test cases |
35 |
|
(TestProjFileSimple): New class for the rest of the test cases |
36 |
|
that came out of the refactoring |
37 |
|
(ProjFileTest): Derive from xmlsupport.ValidationTest so that the |
38 |
|
derived classes don't have to |
39 |
|
|
40 |
|
2003-10-13 Bernhard Herzog <bh@intevation.de> |
41 |
|
|
42 |
|
Add an optional EPSG code to the projection objects and extend the |
43 |
|
.proj file format accordingly. |
44 |
|
|
45 |
|
* Resources/XML/projfile.dtd (element projection): Add epsg |
46 |
|
attribute |
47 |
|
|
48 |
|
* Thuban/Model/proj.py (Projection.__init__): New parameter and |
49 |
|
instance variable epsg. Update doc-string |
50 |
|
(Projection.EPSGCode, Projection.Label): New methods to provide |
51 |
|
access to EPSG code and a label for use in dialogs |
52 |
|
|
53 |
|
* Thuban/Model/resource.py (ProjFileReader.start_projection) |
54 |
|
(ProjFileReader.end_projection, ProjFileSaver.write_projfile): |
55 |
|
Handle the epsg code attribute when reading or writing proj files |
56 |
|
|
57 |
|
* Thuban/UI/projdialog.py (ProjFrame._OnSave) |
58 |
|
(ProjFrame._OnAddToList, ProjFrame.__DoOnProjAvail) |
59 |
|
(ProjFrame.__FillAvailList): Use the projection's Label method to |
60 |
|
get the string for the list box |
61 |
|
|
62 |
|
* test/test_proj.py (TestProjection.test_label) |
63 |
|
(TestProjection.test_label_epsg) |
64 |
|
(TestProjection.test_epsgcode_for_non_epsg_projection) |
65 |
|
(TestProjection.test_epsgcode_for_real_epsg_projection): New tests |
66 |
|
for the label and EPSGCode methods |
67 |
|
(WriteProjFileTests.doTestWrite, WriteProjFileTests.test_write) |
68 |
|
(WriteProjFileTests.test_write_empty_file): Create the ProjFile |
69 |
|
objects in the test cases and put the expected contents into the |
70 |
|
test case methods too. Update doTestWrite accordingly |
71 |
|
(TestLoadingProjFile) |
72 |
|
(TestLoadingProjFileWithEmptyProjectionlist): New classes with the |
73 |
|
read tests from TestProjFile. |
74 |
|
(TestProjFile.doTestRead, TestProjFile.testRead): Removed. These |
75 |
|
tests are now in the new classes. |
76 |
|
(sample_projfile, sample_projfile_data) |
77 |
|
(sample_projfile2, sample_projfile_data2): Removed. Not used |
78 |
|
anymore. |
79 |
|
(TestProjFile.test_read_unreadable_file): No need to reset the |
80 |
|
permissions at the end anymore since we use a unique filename |
81 |
|
|
82 |
|
2003-10-13 Bernhard Herzog <bh@intevation.de> |
83 |
|
|
84 |
|
* test/test_proj.py: Some more refactoring of the test cases |
85 |
|
(ProjFileTest): New base class for the proj file tests. |
86 |
|
(TestProjFile): Derive from ProjFileTest |
87 |
|
(TestProjFile.test_read_unreadable_file) |
88 |
|
(TestProjFile.test_read_empty_file, TestProjFile.doTestRead): Use |
89 |
|
the new filename method to get a unique filename |
90 |
|
(TestProjFile.doTestWrite, TestProjFile.testWrite): Removed. |
91 |
|
(WriteProjFileTests): New class for proj file write tests. |
92 |
|
Contains the write test that were in TestProjFile originally. |
93 |
|
|
94 |
|
2003-10-13 Bernhard Herzog <bh@intevation.de> |
95 |
|
|
96 |
|
* test/test_proj.py (TestProjFile.testRead) |
97 |
|
(TestProjFile.test_read_non_existing_file) |
98 |
|
(TestProjFile.test_read_unreadable_file) |
99 |
|
(TestProjFile.test_read_empty_file): Split into several methods. |
100 |
|
|
101 |
|
2003-10-10 Bernhard Herzog <bh@intevation.de> |
102 |
|
|
103 |
|
* Thuban/UI/sizers.py: New file with custom sizers. |
104 |
|
|
105 |
|
* Thuban/UI/projdialog.py (ProjFrame.build_dialog): Instantiate |
106 |
|
all projection type specific panels and put them into a |
107 |
|
NotebookLikeSizer. This way the dialog doesn't change its size |
108 |
|
when a different projection is selected |
109 |
|
(ProjFrame.__init__): Rename projection_panels |
110 |
|
projection_panel_defs and reuse projection_panels for a list of |
111 |
|
the instantiated panels. |
112 |
|
(ProjFrame._show_proj_panel, ProjFrame.__DoOnProjAvail) |
113 |
|
(ProjFrame.__DoOnProjChoice): Changes due to the new handling of |
114 |
|
the panels |
115 |
|
(UnknownProjPanel._DoLayout): Place the newlines in the message |
116 |
|
differently to make the panel narrower. |
117 |
|
(TMPanel._DoLayout): Layout the parameters in one column. |
118 |
|
|
119 |
|
2003-10-10 Bernhard Herzog <bh@intevation.de> |
120 |
|
|
121 |
|
* Thuban/UI/projdialog.py (ProjFrame.build_dialog): New method |
122 |
|
that contains all the setup for the dialog's widgets, layout and |
123 |
|
event handling. |
124 |
|
(__): Call build_dialog to build the dialog. |
125 |
|
(ProjFrame.__set_properties, ProjFrame.__do_layout): Removed. |
126 |
|
Their functionality is now in build_dialog |
127 |
|
(ProjFrame.__VerifyButtons, ProjFrame.__VerifyButtons) |
128 |
|
(ProjFrame.__DoOnProjAvail, ProjFrame.__DoOnProjAvail) |
129 |
|
(ProjFrame.__DoOnProjChoice): Small updates due to slightly |
130 |
|
different widget names and hierarchy introduced with build_dialog. |
131 |
|
|
132 |
|
2003-10-10 Bernhard Herzog <bh@intevation.de> |
133 |
|
|
134 |
|
* README: Fix typo. |
135 |
|
|
136 |
|
2003-10-09 Bernhard Herzog <bh@intevation.de> |
137 |
|
|
138 |
|
* Thuban/Model/proj.py (ProjFile.Add): Do not check whether the |
139 |
|
projection is already in the list. This is *a lot* faster when |
140 |
|
loading files with hundreds of projections since it saves a linear |
141 |
|
search. OTOH this will allow adding the same projection to the |
142 |
|
user.proj file multiple times in the projection dialog but we'll |
143 |
|
deal with that later |
144 |
|
|
145 |
|
2003-10-09 Jan-Oliver Wagner <jan@intevation.de> |
146 |
|
|
147 |
|
* devtools: New. Directory for developer tools that are not intended |
148 |
|
for the regular user. |
149 |
|
|
150 |
|
* devtools/create_epsg.py: New. Convert the epsg file of proj into |
151 |
|
a python .proj file. |
152 |
|
|
153 |
|
2003-10-09 Bernhard Herzog <bh@intevation.de> |
154 |
|
|
155 |
|
* test/test_proj.py |
156 |
|
(TestProjection.test_get_parameter_without_equals_sign): New. Test |
157 |
|
whether GetParameter handles parameters without "=" sign correctly |
158 |
|
|
159 |
|
* Thuban/Model/proj.py (Projection.GetParameter): Handle |
160 |
|
parameters that do not contain a "=". Update the doc-string |
161 |
|
|
162 |
|
2003-10-08 Bernhard Herzog <bh@intevation.de> |
163 |
|
|
164 |
|
* Thuban/UI/projdialog.py (ProjFrame.__set_properties): Remove the |
165 |
|
length limit on the projname text control |
166 |
|
|
167 |
|
2003-10-08 Bernhard Herzog <bh@intevation.de> |
168 |
|
|
169 |
|
* test/test_proj.py (TestProjection.test_get_projection_units_geo) |
170 |
|
(TestProjection.test_get_projection_units_normal): New. Tests for |
171 |
|
the Projection.GetProjectedUnits method |
172 |
|
|
173 |
|
2003-10-08 Jan-Oliver Wagner <jan@intevation.de> |
174 |
|
|
175 |
|
* Thuban/Model/resource.py (get_user_proj_file): small bug-fix: |
176 |
|
Added missing 'val' parameter. |
177 |
|
|
178 |
|
2003-10-08 Bernhard Herzog <bh@intevation.de> |
179 |
|
|
180 |
|
* Thuban/UI/projdialog.py (ProjFrame.__DoOnProjAvail): When the |
181 |
|
projection type of the currently selected projection is not known, |
182 |
|
i.e. there's no panel for it, use the UnknownProjPanel |
183 |
|
(ProjFrame.__DoOnProjChoice, ProjFrame._show_proj_panel): Split |
184 |
|
the actual replacing of the proj panel into the new method |
185 |
|
_show_proj_panel. |
186 |
|
(UnknownProjPanel): Add doc-string. |
187 |
|
(UnknownProjPanel._DoLayout): Insert a newline into the text so |
188 |
|
that the panel is not so wide. |
189 |
|
|
190 |
|
2003-10-08 Bernhard Herzog <bh@intevation.de> |
191 |
|
|
192 |
|
* Thuban/Model/resource.py (read_proj_file): Return the warnings |
193 |
|
too. Update the doc-string |
194 |
|
(get_proj_files): Removed. It wasn't used anywhere |
195 |
|
(get_system_proj_files, get_system_proj_file): Rename to |
196 |
|
get_system_proj_file and return the ProjFile object and not a list |
197 |
|
of ProjFile objects. Update the callers. |
198 |
|
(get_user_proj_files, get_user_proj_file): Rename to |
199 |
|
get_user_proj_file return the ProjFile object and not a list of |
200 |
|
ProjFile objects. Update the callers. |
201 |
|
(ProjFileReader.__init__): New instance variable for the warnings. |
202 |
|
Rename the __pf ivar to projfile. Update the methods referring to |
203 |
|
__pf |
204 |
|
(ProjFileReader.end_projection): Catch any errors raised when |
205 |
|
instantiating the projection and record that as an error. The |
206 |
|
projection will not be in the final ProjFile object. |
207 |
|
(ProjFileReader.GetWarnings): New method to return the warnings. |
208 |
|
|
209 |
|
* Thuban/UI/projdialog.py (ProjFrame.show_warnings): New method to |
210 |
|
show the warnings from the projfile reader |
211 |
|
(ProjFrame._OnImport): Deal with any warnings returned by |
212 |
|
read_proj_file |
213 |
|
(ProjFrame.__FillAvailList): Deal with any warnings returned by |
214 |
|
get_system_proj_file or get_user_proj_file. |
215 |
|
|
216 |
|
* test/test_proj.py (TestProjFile.doTestRead): Check the warnings. |
217 |
|
(TestProjFileWithInvalidParameters.file_contents): New test cases |
218 |
|
to test whether read_proj_file handles invalid projection |
219 |
|
parameters correctly |
220 |
|
(TestProjFile.test_get_system_proj_file): New. Simple test for |
221 |
|
resource.get_system_proj_file |
222 |
|
|
223 |
|
2003-10-07 Bernhard Herzog <bh@intevation.de> |
224 |
|
|
225 |
|
* test/test_derivedshapestore.py |
226 |
|
(TestDerivedShapeStoreExceptions.tearDown): Clear the session |
227 |
|
properly so that the temporary directories get deleted correctly |
228 |
|
|
229 |
2003-10-06 Bernhard Herzog <bh@intevation.de> |
2003-10-06 Bernhard Herzog <bh@intevation.de> |
230 |
|
|
231 |
Handle the title changes in a proper MVC way. |
Handle the title changes in a proper MVC way. |