[Mpuls-commits] r5922 - jmd/trunk/jmdweb/model

scm-commit at wald.intevation.org scm-commit at wald.intevation.org
Fri Apr 13 12:40:28 CEST 2012


Author: roland
Date: 2012-04-13 12:40:28 +0200 (Fri, 13 Apr 2012)
New Revision: 5922

Modified:
   jmd/trunk/jmdweb/model/case.py
Log:
Implement getHashFields for connection to meta-server

Modified: jmd/trunk/jmdweb/model/case.py
===================================================================
--- jmd/trunk/jmdweb/model/case.py	2012-04-13 10:31:49 UTC (rev 5921)
+++ jmd/trunk/jmdweb/model/case.py	2012-04-13 10:40:28 UTC (rev 5922)
@@ -81,8 +81,17 @@
 
 
 class Case(MpulsCase):
+    
+    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.switch_gender_field(
+                                       self.get_value('geschlecht'))
+        fields['birthdate'] = self.get_value('geburtsdatum')
+        return fields
 
-    pass
 
-
 # vim:set ts=4 sw=4 si et sta sts=4 fenc=utf8 :



More information about the Mpuls-commits mailing list