From 03af7098e82a84dcac087cbe56a427855ea6ffa0 Mon Sep 17 00:00:00 2001 From: Valentin Samir Date: Tue, 14 May 2013 23:29:40 +0200 Subject: [PATCH] =?UTF-8?q?[attributs.positionBorne]=20La=20pr=C3=A9cision?= =?UTF-8?q?=20est=20variable=20et=20on=20ne=20stocke=20que=202=20float=20s?= =?UTF-8?q?ans=20=C2=B0N=20ou=20=C2=B0E=20(peut=20=C3=AAtre=20=C3=A0=20rev?= =?UTF-8?q?oir)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- attributs.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/attributs.py b/attributs.py index 02e2017..06a981a 100644 --- a/attributs.py +++ b/attributs.py @@ -672,10 +672,11 @@ class positionBorne(Attr): def parse_value(self, pos): if pos == u'N/A N/A': - self.value = u"N/A°N N/A°E" + self.value = u"N/A N/A" else: lat, lon = pos.split(" ") - self.value = u"%f°N %f°E" % (float(lat), float(lon)) + self.value = u"%f %f" % (float(lat), float(lon)) + self.value = pos class nvram(Attr): legend = u"Configuration speciale"