[Mpuls-commits] r5860 - base/trunk/mpulsweb/model

scm-commit at wald.intevation.org scm-commit at wald.intevation.org
Tue Mar 6 15:22:52 CET 2012


Author: ludwig
Date: 2012-03-06 15:22:51 +0100 (Tue, 06 Mar 2012)
New Revision: 5860

Modified:
   base/trunk/mpulsweb/model/document.py
Log:
For the datum field use date object in the XML import.


Modified: base/trunk/mpulsweb/model/document.py
===================================================================
--- base/trunk/mpulsweb/model/document.py	2012-03-06 12:44:58 UTC (rev 5859)
+++ base/trunk/mpulsweb/model/document.py	2012-03-06 14:22:51 UTC (rev 5860)
@@ -37,7 +37,7 @@
 
 import psycopg2  as dbapi
 
-from formed.meta.data import RepeatNode, TextLeaf
+from formed.meta.data import RepeatNode, TextLeaf, DateLeaf
 from formed.meta.structure import StructureNode
 from formed.instance.backends.xmlimport import ComponentFactory
 from formed.instance.simplified import StructureInstanceNode, \
@@ -388,7 +388,7 @@
                                 new_node(TextLeaf, "anlage-name"),
                                 new_node(TextLeaf, "anlage-daten"),
                                 new_node(TextLeaf, "anlage-beschreibung"),
-                                new_node(TextLeaf, "anlage-datum")
+                                new_node(DateLeaf, "anlage-datum")
                                 ],
                                [])
     return ComponentFactory(None,



More information about the Mpuls-commits mailing list