[Mpuls-commits] r5752 - waska/branches/waska3/waskaweb/model

scm-commit@wald.intevation.org scm-commit at wald.intevation.org
Fri Jan 6 14:32:45 CET 2012


Author: torsten
Date: 2012-01-06 14:32:45 +0100 (Fri, 06 Jan 2012)
New Revision: 5752

Modified:
   waska/branches/waska3/waskaweb/model/case.py
Log:
Add new method to return field to build hash for meta functionallity


Modified: waska/branches/waska3/waskaweb/model/case.py
===================================================================
--- waska/branches/waska3/waskaweb/model/case.py	2012-01-06 13:16:56 UTC (rev 5751)
+++ waska/branches/waska3/waskaweb/model/case.py	2012-01-06 13:32:45 UTC (rev 5752)
@@ -89,4 +89,16 @@
             self.discretion_statement = None
             raise
         return None
+
+    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('geburtsname')
+                               or self.get_value('nachname'))
+        fields['gender'] = self.get_value('geschlecht')
+        fields['birthdate'] = self.get_value('geburtsdatum')
+        return fields
+
 # vim:set ts=4 sw=4 si et sta sts=4 fenc=utf8 :



More information about the Mpuls-commits mailing list