bh: thuban/Thuban/Model layer.py,1.57,1.57.2.1

cvs@intevation.de cvs at intevation.de
Thu Jun 3 17:29:18 CEST 2004


Author: bh

Update of /thubanrepository/thuban/Thuban/Model
In directory doto:/tmp/cvs-serv19718/Thuban/Model

Modified Files:
      Tag: thuban-1-0-branch
	layer.py 
Log Message:
Backport some fixes from HEAD:

* Thuban/Model/layer.py (Layer.TreeInfo): Convert the bounding box
to a tuple before using it as arguments to the % operator.  This
fixes the formatting issue filed in RT#2239 on 2004-01-13 and
reported today on thuban-list by Jan Schüngel

* test/test_layer.py (TestLayerModification.setUp): Save the
filename as an instance variable so we can refer to it in tests
(TestLayerModification.test_tree_info): Uncomment this method
again and make it work.  This tests for the formatting issue
filed in RT#2239 on 2004-01-13


Index: layer.py
===================================================================
RCS file: /thubanrepository/thuban/Thuban/Model/layer.py,v
retrieving revision 1.57
retrieving revision 1.57.2.1
diff -u -d -r1.57 -r1.57.2.1
--- layer.py	27 Nov 2003 15:57:23 -0000	1.57
+++ layer.py	3 Jun 2004 15:29:16 -0000	1.57.2.1
@@ -289,7 +289,7 @@
 
         bbox = self.LatLongBoundingBox()
         if bbox is not None:
-            items.append(_("Extent (lat-lon): (%g, %g, %g, %g)") % bbox)
+            items.append(_("Extent (lat-lon): (%g, %g, %g, %g)") % tuple(bbox))
         else:
             items.append(_("Extent (lat-lon):"))
         items.append(_("Shapetype: %s") % shapetype_names[self.ShapeType()])





More information about the Thuban-devel mailing list

This site is hosted by Intevation GmbH (Datenschutzerklärung und Impressum | Privacy Policy and Imprint)