[Mpuls-commits] r5132 - in base/trunk: . mpulsweb/lib

scm-commit@wald.intevation.org scm-commit at wald.intevation.org
Fri Jun 24 10:52:50 CEST 2011


Author: torsten
Date: 2011-06-24 10:52:48 +0200 (Fri, 24 Jun 2011)
New Revision: 5132

Modified:
   base/trunk/ChangeLog
   base/trunk/mpulsweb/lib/validators.py
Log:
Issue1972: Return default time object (00:00) if no time is defined.



Modified: base/trunk/ChangeLog
===================================================================
--- base/trunk/ChangeLog	2011-06-23 20:16:55 UTC (rev 5131)
+++ base/trunk/ChangeLog	2011-06-24 08:52:48 UTC (rev 5132)
@@ -1,3 +1,8 @@
+2011-06-24  Torsten Irländer <torsten.irlaender at intevation.de>
+
+	* mpulsweb/lib/validators.py: Issue1972: Return default time object
+	(00:00) if no time is defined.
+
 2011-06-23  Bernhard Herzog  <bh at intevation.de>
 
 	* mpulsweb/lib/security.py (checkLogin): Do not use ensure_unicode

Modified: base/trunk/mpulsweb/lib/validators.py
===================================================================
--- base/trunk/mpulsweb/lib/validators.py	2011-06-23 20:16:55 UTC (rev 5131)
+++ base/trunk/mpulsweb/lib/validators.py	2011-06-24 08:52:48 UTC (rev 5132)
@@ -610,7 +610,7 @@
 class CreateAppointmentForm(BaseFormValidator):
 
     start_date = MyDateConverter(not_empty=True, month_style='dd.mm.jjjj')
-    start_time = TimeConverter(if_empty="00:00", use_datetime=True)
+    start_time = TimeConverter(if_empty=datetime.time(0, 0), use_datetime=True)
 
     end_date = MyDateConverter(month_style='dd.mm.jjjj')
     end_time = TimeConverter(use_datetime=True)



More information about the Mpuls-commits mailing list