[Mpuls-commits] r346 - in wasko/trunk: . waskaweb/model

scm-commit@wald.intevation.org scm-commit at wald.intevation.org
Mon Mar 9 15:12:13 CET 2009


Author: teichmann
Date: 2009-03-09 15:12:10 +0100 (Mon, 09 Mar 2009)
New Revision: 346

Modified:
   wasko/trunk/ChangeLog.txt
   wasko/trunk/waskaweb/model/casexml.py
Log:
Lowercase UUIDs in XML import.


Modified: wasko/trunk/ChangeLog.txt
===================================================================
--- wasko/trunk/ChangeLog.txt	2009-03-09 12:30:20 UTC (rev 345)
+++ wasko/trunk/ChangeLog.txt	2009-03-09 14:12:10 UTC (rev 346)
@@ -1,9 +1,13 @@
-2009-03-05	Sascha L. Teichmann	<teichmann at intevation.de>
+2009-03-09	Sascha L. Teichmann	<teichmann at intevation.de>
 
+	* waskaweb/model/casexml.py: lower case uuids.
+
+2009-03-09	Sascha L. Teichmann	<teichmann at intevation.de>
+
 	* waskaweb/model/casexml.py, waskaweb/converter/wasko_v1v2.py:
 	  Handle import of multiple cases more gently.
 
-2009-03-05	Sascha L. Teichmann	<teichmann at intevation.de>
+2009-03-09	Sascha L. Teichmann	<teichmann at intevation.de>
 
 	* waskaweb/model/casexml.py: Added converter plug-in logic
 	  from Offline Client.

Modified: wasko/trunk/waskaweb/model/casexml.py
===================================================================
--- wasko/trunk/waskaweb/model/casexml.py	2009-03-09 12:30:20 UTC (rev 345)
+++ wasko/trunk/waskaweb/model/casexml.py	2009-03-09 14:12:10 UTC (rev 346)
@@ -313,7 +313,7 @@
 
     def uuid_end(self, name, attrs, value):
         if self.entry: 
-            value = value.strip()
+            value = value.strip().lower()
             if not is_uuid(value):
                 raise XMLImportException("'%s' ist keine UUID." % repr(value))
             self.entry.uuid = value
@@ -376,7 +376,7 @@
             widget = self.formed.widgets[name]
         except KeyError:
             if name == u'uuid_id':
-                value = value.strip()
+                value = value.strip().lower()
                 if not is_uuid(value):
                     raise XMLImportException(u"'%s' ist keine UUID" % repr(value))
                 self.uuid = value



More information about the Mpuls-commits mailing list