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

scm-commit@wald.intevation.org scm-commit at wald.intevation.org
Mon Oct 26 15:29:17 CET 2009


Author: torsten
Date: 2009-10-26 15:29:12 +0100 (Mon, 26 Oct 2009)
New Revision: 658

Modified:
   wasko/branches/1.0/ChangeLog.txt
   wasko/branches/1.0/waskaweb/model/phases.py
Log:
Issue427


Modified: wasko/branches/1.0/ChangeLog.txt
===================================================================
--- wasko/branches/1.0/ChangeLog.txt	2009-10-26 14:18:02 UTC (rev 657)
+++ wasko/branches/1.0/ChangeLog.txt	2009-10-26 14:29:12 UTC (rev 658)
@@ -19,7 +19,12 @@
 
 	* waskaweb/lib/search.py: Added new migration filter
 
+	Issue427:
 
+	* waskaweb/model/phases.py: Do not display dates nor calculate
+	timeframes on phasepage if time is unknown (0001-01-01) 
+
+
 2009-10-23	Torsten Irlaender	<torsten.irlaender at intevation.de> 
 
 	Set version to 1.1.0

Modified: wasko/branches/1.0/waskaweb/model/phases.py
===================================================================
--- wasko/branches/1.0/waskaweb/model/phases.py	2009-10-26 14:18:02 UTC (rev 657)
+++ wasko/branches/1.0/waskaweb/model/phases.py	2009-10-26 14:29:12 UTC (rev 658)
@@ -81,7 +81,9 @@
         return other.phase in successors
 
     def getTime(self):
-        return self.time
+        if str(self.time) != '0001-01-01':
+            return self.time
+        return None
 
     def getLinks(self):
         return self.links



More information about the Mpuls-commits mailing list