[Mpuls-commits] r570 - in wasko/branches/1.0.5: . waskaweb/model
scm-commit@wald.intevation.org
scm-commit at wald.intevation.org
Thu Aug 13 12:11:42 CEST 2009
Author: teichmann
Date: 2009-08-13 12:11:41 +0200 (Thu, 13 Aug 2009)
New Revision: 570
Modified:
wasko/branches/1.0.5/ChangeLog.txt
wasko/branches/1.0.5/waskaweb/model/semantic.py
Log:
Fiexed issu426
Modified: wasko/branches/1.0.5/ChangeLog.txt
===================================================================
--- wasko/branches/1.0.5/ChangeLog.txt 2009-08-04 12:54:04 UTC (rev 569)
+++ wasko/branches/1.0.5/ChangeLog.txt 2009-08-13 10:11:41 UTC (rev 570)
@@ -1,3 +1,7 @@
+2009-07-07 Sascha L. Teichmann <sascha.teichmann at intevation.de>
+
+ * waskaweb/model/semantic.py: Fixed issue426
+
2009-07-16 Torsten Irlaender <torsten.irlaender at intevation.de>
Set version to 1.0.5
Modified: wasko/branches/1.0.5/waskaweb/model/semantic.py
===================================================================
--- wasko/branches/1.0.5/waskaweb/model/semantic.py 2009-08-04 12:54:04 UTC (rev 569)
+++ wasko/branches/1.0.5/waskaweb/model/semantic.py 2009-08-13 10:11:41 UTC (rev 570)
@@ -133,6 +133,7 @@
try:
value = int(float(value))
+ if value == UNKNOWN_INT: return UNKNOWN_INT
except ValueError:
raise SematicError("'%s' ist keine ganze Zahl." % value)
try:
@@ -199,6 +200,9 @@
month = int(m.group(idx[1]))
year = int(m.group(idx[2]))
+ if day == 1 and month == 1 and year == 1:
+ return UNKNOWN_DATE
+
if year < 100:
if year < 70: year += 2000
else: year += 1900
More information about the Mpuls-commits
mailing list