1 |
|
2003-10-08 Bernhard Herzog <[email protected]> |
2 |
|
|
3 |
|
* Thuban/Model/resource.py (read_proj_file): Return the warnings |
4 |
|
too. Update the doc-string |
5 |
|
(get_proj_files): Removed. It wasn't used anywhere |
6 |
|
(get_system_proj_files, get_system_proj_file): Rename to |
7 |
|
get_system_proj_file and return the ProjFile object and not a list |
8 |
|
of ProjFile objects. Update the callers. |
9 |
|
(get_user_proj_files, get_user_proj_file): Rename to |
10 |
|
get_user_proj_file return the ProjFile object and not a list of |
11 |
|
ProjFile objects. Update the callers. |
12 |
|
(ProjFileReader.__init__): New instance variable for the warnings. |
13 |
|
Rename the __pf ivar to projfile. Update the methods referring to |
14 |
|
__pf |
15 |
|
(ProjFileReader.end_projection): Catch any errors raised when |
16 |
|
instantiating the projection and record that as an error. The |
17 |
|
projection will not be in the final ProjFile object. |
18 |
|
(ProjFileReader.GetWarnings): New method to return the warnings. |
19 |
|
|
20 |
|
* Thuban/UI/projdialog.py (ProjFrame.show_warnings): New method to |
21 |
|
show the warnings from the projfile reader |
22 |
|
(ProjFrame._OnImport): Deal with any warnings returned by |
23 |
|
read_proj_file |
24 |
|
(ProjFrame.__FillAvailList): Deal with any warnings returned by |
25 |
|
get_system_proj_file or get_user_proj_file. |
26 |
|
|
27 |
|
* test/test_proj.py (TestProjFile.doTestRead): Check the warnings. |
28 |
|
(TestProjFileWithInvalidParameters.file_contents): New test cases |
29 |
|
to test whether read_proj_file handles invalid projection |
30 |
|
parameters correctly |
31 |
|
(TestProjFile.test_get_system_proj_file): New. Simple test for |
32 |
|
resource.get_system_proj_file |
33 |
|
|
34 |
2003-10-07 Bernhard Herzog <[email protected]> |
2003-10-07 Bernhard Herzog <[email protected]> |
35 |
|
|
36 |
* test/test_derivedshapestore.py |
* test/test_derivedshapestore.py |