[Mpuls-commits] r5644 - in wasko/trunk/waskoweb: model public/formed

scm-commit@wald.intevation.org scm-commit at wald.intevation.org
Tue Nov 22 15:26:47 CET 2011


Author: ludwig
Date: 2011-11-22 15:26:46 +0100 (Tue, 22 Nov 2011)
New Revision: 5644

Modified:
   wasko/trunk/waskoweb/model/case.py
   wasko/trunk/waskoweb/public/formed/convert-wasko-meta.xsl
Log:
Wasko Meta: Add getHashFields method and update the version number in convert
XSLT script.


Modified: wasko/trunk/waskoweb/model/case.py
===================================================================
--- wasko/trunk/waskoweb/model/case.py	2011-11-22 14:24:43 UTC (rev 5643)
+++ wasko/trunk/waskoweb/model/case.py	2011-11-22 14:26:46 UTC (rev 5644)
@@ -98,7 +98,15 @@
 
 class Case(MpulsCase):
 
-    pass
+    def getHashFields(self):
+        """Returns a dictionary of fields which is used to build the hashkey
+        for the meta server"""
+        fields = {}
+        fields['firstname'] = self.get_value('vorname')
+        fields['birthname'] = self.get_value('name')
+        fields['gender'] = self.get_value('geschlecht')
+        fields['birthdate'] = self.get_value('geburtsdatum')
+        return fields
 
     #def setEditor(self, userid):
     #    """Sets the name of the editor in formular of the case.  First call

Modified: wasko/trunk/waskoweb/public/formed/convert-wasko-meta.xsl
===================================================================
--- wasko/trunk/waskoweb/public/formed/convert-wasko-meta.xsl	2011-11-22 14:24:43 UTC (rev 5643)
+++ wasko/trunk/waskoweb/public/formed/convert-wasko-meta.xsl	2011-11-22 14:26:46 UTC (rev 5644)
@@ -6,7 +6,7 @@
     <xsl:output method="xml" encoding="UTF-8" />
 
     <xsl:template match="/">
-        <cases formed-type="http://mpuls.intevation.de/formed/air-case/2011-09-02/10:00:00" version="5">
+        <cases formed-type="http://mpuls.intevation.de/formed/air-case/2011-09-16/15:00:00" version="5">
             <case>
                 <master>
                     <rg_einrichtung>



More information about the Mpuls-commits mailing list