/[thuban]/branches/WIP-pyshapelib-bramz/ChangeLog
ViewVC logotype

Diff of /branches/WIP-pyshapelib-bramz/ChangeLog

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1269 by jonathan, Fri Jun 20 14:36:46 2003 UTC revision 1270 by bh, Fri Jun 20 16:10:40 2003 UTC
# Line 1  Line 1 
1    2003-06-20  Bernhard Herzog  <[email protected]>
2    
3            * Resources/XML/thuban-0.8.dtd: New DTD for the new file format
4            version.
5    
6            * Thuban/Model/save.py (sort_data_stores): New. Make topological
7            sort of the data sources so they can be written with sources that
8            data sources that depend on other data sources come after the
9            sources they depend on.
10            (SessionSaver.__init__): Add idmap instance variable to map from
11            objects to the ids used in the file.
12            (SessionSaver.get_id, SessionSaver.define_id)
13            (SessionSaver.has_id): New. Methods to manage the idmap
14            (SessionSaver.write): Use thuban-0.8.dtd
15            (SessionSaver.write_session): Add a namespace on the session and
16            write out the data sources before the maps.
17            (SessionSaver.write_data_containers): New. Write the data
18            containers.
19            (SessionSaver.write_layer): Layer elements now refer to a
20            shapestore and don't contain filenames anymore.
21    
22            * Thuban/Model/load.py (LoadError): Exception class to raise when
23            errors in the files are discovered
24            (SessionLoader.__init__): Define dispatchers for elements with a
25            thuban-0.8 namespace too.
26            (SessionLoader.check_attrs): New helper method to check and
27            convert attributes
28            (AttrDesc): New. Helper class for SessionLoader.check_attrs
29            (SessionLoader.start_fileshapesource)
30            (SessionLoader.start_derivedshapesource)
31            (SessionLoader.start_filetable, SessionLoader.start_jointable):
32            Handlers for the new elements in the new fileformat
33            (SessionLoader.start_layer): Handle the shapestore attribute in
34            addition to filename.
35            (SessionLoader.start_table, SessionLoader.end_table): Removed.
36            They were never used in the old formats and aren't needed for the
37            new.
38    
39            * Thuban/Model/session.py (Session.DataContainers): New method to
40            return all "data containers", i.e. shapestores and tables
41    
42            * test/xmlsupport.py (SaxEventLister.__init__)
43            (SaxEventLister.startElementNS, sax_eventlist): Add support to
44            normalize IDs.
45    
46            * test/test_xmlsupport.py
47            (TestEventList.test_even_list_id_normalization): New test case for
48            id normalization
49    
50            * test/test_load.py (LoadSessionTest.check_format): Use ID
51            normalization
52            (LoadSessionTest.thubanids, LoadSessionTest.thubanidrefs): New
53            class atrributes used for ID normalization
54            (TestSingleLayer, TestLayerVisibility, TestLabels.test)
55            (TestLayerProjection.test, TestRasterLayer.test): Adapt to new
56            file format
57            (TestJoinedTable): New test for loading sessions with joined
58            tables.
59            (TestLoadError): New. Test whether missing required attributes
60            cause a LoadError.
61    
62            * test/test_save.py (SaveSessionTest.thubanids)
63            (SaveSessionTest.thubanidrefs): New class attributes for ID
64            normalization in .thuban files.
65            (SaveSessionTest.compare_xml): Use id-normalization.
66            (SaveSessionTest.testEmptySession)
67            (SaveSessionTest.testLayerProjection)
68            (SaveSessionTest.testRasterLayer)
69            (SaveSessionTest.testClassifiedLayer): Adapt to new file format.
70            (SaveSessionTest.testLayerProjection): The filename used was the
71            same as for testSingleLayer. Use a different one.
72            (SaveSessionTest.test_dbf_table)
73            (SaveSessionTest.test_joined_table): New test cases for saving the
74            new data sources structures.
75            (TestStoreSort, MockDataStore): Classes to test the sorting of the
76            data stores for writing.
77    
78            * test/runtests.py: Add CVS keywords
79    
80  2003-06-20  Jonathan Coles   <[email protected]>  2003-06-20  Jonathan Coles   <[email protected]>
81    
82          * test/test_session.py          * test/test_session.py

Legend:
Removed from v.1269  
changed lines
  Added in v.1270

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26