Log of /branches/WIP-pyshapelib-bramz/test/test_load_0_9.py
Parent Directory
|
Revision Log
Revision
2642 -
(
view)
(
annotate)
-
[select for diffs]
Modified
Fri Jul 1 20:49:04 2005 UTC
(19 years, 8 months ago)
by
bh
Original Path:
trunk/thuban/test/test_load_0_9.py
File length: 26285 byte(s)
Diff to
previous 2104
First step towards unicode. With this roughly we're at step 1
string_representation.txt
* Doc/technotes/string_representation.txt: New. Document how
strings are represented in Thuban and how to get to a Unicode
Thuban.
* Thuban/__init__.py (set_internal_encoding)
(unicode_from_internal, internal_from_unicode): New. The first few
functions for the internal string representation
* Thuban/UI/about.py (unicodeToLocale): Removed. Use
internal_from_unicode instead.
* Thuban/UI/__init__.py (install_wx_translation): Determine the
encoding to use for the internal string representation. Also,
change the translation function to return strings in internal
representation even on unicode builds of wxPython
* Thuban/Model/load.py (SessionLoader.check_attrs): Decode
filenames too.
(SessionLoader.start_clrange): Use check_attrs to decode and check
the attributes.
* Thuban/Model/xmlreader.py (XMLReader.encode): Use
internal_from_unicode to convert unicode strings.
* Thuban/Model/xmlwriter.py (XMLWriter.encode): Use
unicode_from_internal when applicable
* test/runtests.py (main): New command line option:
internal-encoding to specify the internal string encoding to use
in the tests.
* test/support.py (initthuban): Set the internal encoding to
latin-1
* test/test_load.py (TestSingleLayer.test, TestClassification.test)
(TestLabelLayer.test): Use the internal string representation when
dealing with non-ascii characters
* test/test_load_1_0.py (TestSingleLayer.test)
(TestClassification.test, TestLabelLayer.test): Use the internal
string representation when dealing with non-ascii characters
* test/test_load_0_9.py (TestSingleLayer.test)
(TestClassification.test): Use the internal string representation
when dealing with non-ascii characters
* test/test_load_0_8.py (TestUnicodeStrings.test): Use the
internal string representation when dealing with non-ascii
characters
* test/test_save.py (XMLWriterTest.testEncode)
(SaveSessionTest.testClassifiedLayer): Use the internal string
representation when dealing with non-ascii characters where
applicable
Revision
2104 -
(
view)
(
annotate)
-
[select for diffs]
Modified
Fri Mar 12 12:19:15 2004 UTC
(20 years, 11 months ago)
by
bh
Original Path:
trunk/thuban/test/test_load_0_9.py
File length: 26092 byte(s)
Diff to
previous 1848
Final step for explicit id/geometry columns: Loading and saving
* Resources/XML/thuban-1.1.dtd: New. Derived from thuban-1.0.dtd
with the following changes:
(dbshapesource): Two new attributes id_column and geometry_column
* Thuban/Model/save.py (SessionSaver.write): Use the new dtd
(SessionSaver.write_session): Use the new namespace
(SessionSaver.write_data_containers): Write the new dbshapesource
parameters
* Thuban/Model/load.py (SessionLoader.__init__): New namespace for
the new file format version
(SessionLoader.start_dbshapesource): Handle the new db parameters
* test/test_save.py: Update to the new dtd and namespace
(SaveSessionTest.test_save_postgis): Update the NonConnectionStore
mock object to provide a working IDColumn method.
* test/test_load_1_0.py: New. Copy of the test_load.py before
today's changes but with the round-trip tests removed.
* test/test_load_0_9.py: Update doc-string.
* test/test_load.py: Update all .thuban files to the new dtd and
namespace.
(TestPostGISLayer.file_contents): Add the new dbshapesource
paramters
Revision
1848 -
(
view)
(
annotate)
-
[select for diffs]
Modified
Tue Oct 21 11:06:56 2003 UTC
(21 years, 4 months ago)
by
bh
Original Path:
trunk/thuban/test/test_load_0_9.py
File length: 26693 byte(s)
Diff to
previous 1842
* test/test_load.py (TestSingleLayer.file_contents)
(TestSingleLayer.test): Add non-ascii characters to the titles of
session, map and layer. This is effectively a port of the
TestUnicodeStrings test in test_load_0_8.py which for some reason
was only added there.
* test/test_load_0_9.py (TestSingleLayer.file_contents)
(TestSingleLayer.test): Same as in test_load.py: add non-ascii
characters to the titles of session, map and layer,.
Revision
1842 -
(
view)
(
annotate)
-
[select for diffs]
Added
Tue Oct 21 10:49:20 2003 UTC
(21 years, 4 months ago)
by
bh
Original Path:
trunk/thuban/test/test_load_0_9.py
File length: 26519 byte(s)
New. Effectively a copy of test_load.py
as of Thuban 0.9. These are now tests to determine whether Thuban
can still read files generated by Thuban 0.9
This form allows you to request diffs between any two revisions of this file.
For each of the two "sides" of the diff,
enter a numeric revision.