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