/[thuban]/trunk/thuban/Extensions/svgexport/svgmapwriter.py
ViewVC logotype

Log of /trunk/thuban/Extensions/svgexport/svgmapwriter.py

Parent Directory Parent Directory | Revision Log Revision Log


Links to HEAD: (view) (annotate)
Sticky Revision:

Revision 2388 - (view) (annotate) - [select for diffs]
Modified Mon Nov 15 16:27:41 2004 UTC (20 years, 3 months ago) by bernhard
File length: 23618 byte(s)
Diff to previous 2352
* Extensions/svgexport/: Minor improvements to doc strings.


Revision 2352 - (view) (annotate) - [select for diffs]
Modified Mon Sep 27 09:56:13 2004 UTC (20 years, 5 months ago) by bernhard
File length: 24015 byte(s)
Diff to previous 2350
More fixes to svgexport to make used ids unique and
conforming to XML's Name production.

* Extensions/svgexport/test/test_svgmapwriter.py: Added new tests
test_xml_id_constraints(), test_make_ide_nosetbaseid() and
test_make_id_nonintegersetid().  Switched SetID and SetBaseID.
Added Bernhard R. as author.
* Extensions/svgexport/svgmapwriter.py (make_id): Using "_" as
concatenation char now (makes test_make_ide_nosetbaseid() valid).
Also transform second id part with "%d" and catch the TypeError
to raise SVGMapWriterError (making test_make_id_nonintegersetid() ok).
Corrected typo inBernhard's author line.
(SetBaseID): Return the transformed base id. Transform characters
which are not alnum() or in ".-_" to binascii.b2a_hex(). Added
import binascii. If to be set string starts with "xml" or so, add "t".
(draw_shape_layer_incrementally): use the returned value of SetBaseID
for used_baseids checks.


Revision 2350 - (view) (annotate) - [select for diffs]
Modified Sat Sep 25 18:29:24 2004 UTC (20 years, 5 months ago) by bernhard
File length: 22614 byte(s)
Diff to previous 2344
Added Bernhard R. as Author.
(SetBaseID, SetID, make_id): Improved docstring comments to explain
the interaction of the three functions and the XML id contrains.


Revision 2344 - (view) (annotate) - [select for diffs]
Modified Tue Sep 21 21:30:36 2004 UTC (20 years, 5 months ago) by bernhard
File length: 21546 byte(s)
Diff to previous 2082
Improved the svgexport to only use unique ids. Will issues
an error message dialoge when two layer names are the same.
ShapeIDs are now added with a dash within the svg ids.

* Extensions/svgexport/svgmapwriter.py (SVGMapWriterError): New.
* Extensions/svgexport/test/test_svgmapwriter.py: Added imports
(TestSVGRenderer): New test class with test_make_in() and
test_check_for_layer_name_clash()
* Extensions/svgexport/svgmapwriter.py (SVGRenderer): Fixed __init__()
and draw_shape_layer_incrementally() to not use a baseid twice,
satisfying test_check_for_layer_name_clash()
(VirtualDC.make_id): Use a dash between baseit and id, satisfies
test_make_in().
* Extensions/svexport/svgsaver.py: Import SVGMapWriterError, wxOK
and wxICON_HAND.
(write_to_svg): Put dc and rendering in a try statement and on
catching SVGmapWriterError notify the user and delete the target file.
-------------------------------------------------------------------


Revision 2082 - (view) (annotate) - [select for diffs]
Modified Fri Feb 20 14:33:22 2004 UTC (21 years ago) by bh
File length: 20956 byte(s)
Diff to previous 2074
Reorder the imports and
doc-string a bit.  The doc-string must come first, otherwise it's
not a doc-string.  The __future__ import must be the first thing
after the doc-string.  Use only double quotes in doc-strings.
Single quotes trip up emacs syntax highlighting if the text
contains apostrophes.


Revision 2074 - (view) (annotate) - [select for diffs]
Added Thu Feb 19 13:38:27 2004 UTC (21 years ago) by bh
File length: 20970 byte(s)
Added again.  This time in the
correct place.


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.

  Diffs between and
  Type of Diff should be a

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26