[Mpuls-commits] r3618 - in wasko/branches/1.0: . waskaweb/model

scm-commit@wald.intevation.org scm-commit at wald.intevation.org
Tue Sep 14 12:14:26 CEST 2010


Author: roland
Date: 2010-09-14 12:14:25 +0200 (Tue, 14 Sep 2010)
New Revision: 3618

Modified:
   wasko/branches/1.0/ChangeLog.txt
   wasko/branches/1.0/waskaweb/model/casexml.py
Log:
Comment the special logic for dates in the import

Modified: wasko/branches/1.0/ChangeLog.txt
===================================================================
--- wasko/branches/1.0/ChangeLog.txt	2010-09-14 10:05:38 UTC (rev 3617)
+++ wasko/branches/1.0/ChangeLog.txt	2010-09-14 10:14:25 UTC (rev 3618)
@@ -1,3 +1,8 @@
+2010-09-14	Roland Geider <roland.geider at intevation.de>
+
+	* waskaweb/model/casexml.py: Comment all the logic for dealing with
+	  dates in the import.
+
 2010-07-20 	Torsten Irlaender	<torsten.irlaender at intevation.de> 
 
 	Issue758:

Modified: wasko/branches/1.0/waskaweb/model/casexml.py
===================================================================
--- wasko/branches/1.0/waskaweb/model/casexml.py	2010-09-14 10:05:38 UTC (rev 3617)
+++ wasko/branches/1.0/waskaweb/model/casexml.py	2010-09-14 10:14:25 UTC (rev 3618)
@@ -482,14 +482,16 @@
             if old_value == value: continue
             
             # Check dates for cm_start and cm_end
-            if var in ['datum_cm_start', 'datum_cm_ende']:
-                if value < datetime.date(2010, 01, 01):
-                    if var == 'datum_cm_start':
-                        datum = 'Datum Beginn der Umsetzung des Case Management'
-                    else:
-                        datum = 'Datum Ende Case Management'
-                    errors.append('%s darf nicht vor dem 1.1.2010 liegen' % datum)
-                    continue
+            
+            # Commented on 14.09.2010: special logic for dates not needed anymore
+            #if var in ['datum_cm_start', 'datum_cm_ende']:
+            #    if value < datetime.date(2010, 01, 01):
+            #        if var == 'datum_cm_start':
+            #            datum = 'Datum Beginn der Umsetzung des Case Management'
+            #        else:
+            #            datum = 'Datum Ende Case Management'
+            #        errors.append('%s darf nicht vor dem 1.1.2010 liegen' % datum)
+            #        continue
 
             rules = self.formed.getRulesForVariable(var)
             okay = True



More information about the Mpuls-commits mailing list