[Erp5-report] r19213 - /erp5/trunk/products/ERP5Type/patches/DateTimePatch.py

nobody at svn.erp5.org nobody at svn.erp5.org
Sun Feb 10 11:42:22 CET 2008


Author: kazuhiko
Date: Sun Feb 10 11:42:21 2008
New Revision: 19213

URL: http://svn.erp5.org?rev=19213&view=rev
Log:
fix: undefined 'localtime' and 'time'.

Modified:
    erp5/trunk/products/ERP5Type/patches/DateTimePatch.py

Modified: erp5/trunk/products/ERP5Type/patches/DateTimePatch.py
URL: http://svn.erp5.org/erp5/trunk/products/ERP5Type/patches/DateTimePatch.py?rev=19213&r1=19212&r2=19213&view=diff
==============================================================================
--- erp5/trunk/products/ERP5Type/patches/DateTimePatch.py (original)
+++ erp5/trunk/products/ERP5Type/patches/DateTimePatch.py Sun Feb 10 11:42:21 2008
@@ -30,7 +30,7 @@
 import math
 from DateTime.DateTime import _calcSD, _calcDependentSecond, _calcYMDHMS,\
 getDefaultDateFormat, _correctYear, _calcHMS, _calcDependentSecond2, DateTimeError,\
-SyntaxError, DateError, TimeError
+SyntaxError, DateError, TimeError, localtime, time
 
 STATE_KEY = 'str'
 
@@ -196,6 +196,8 @@
       year=ints[2]
     del ints[:3]
 
+  import pdb; pdb.set_trace()
+  day = None
   if day is None:
     # Use today's date.
     year,month,day = localtime(time())[:3]




More information about the Erp5-report mailing list