[Erp5-report] r19045 - /erp5/trunk/products/ERP5Type/patches/DateTimePatch.py
nobody at svn.erp5.org
nobody at svn.erp5.org
Tue Feb 5 13:11:00 CET 2008
Author: nicolas
Date: Tue Feb 5 13:11:00 2008
New Revision: 19045
URL: http://svn.erp5.org?rev=19045&view=rev
Log:
import instead overload classes
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=19045&r1=19044&r2=19045&view=diff
==============================================================================
--- erp5/trunk/products/ERP5Type/patches/DateTimePatch.py (original)
+++ erp5/trunk/products/ERP5Type/patches/DateTimePatch.py Tue Feb 5 13:11:00 2008
@@ -28,21 +28,11 @@
from DateTime import DateTime as DateTimeKlass
import math
-from DateTime.DateTime import _calcSD, _calcDependentSecond, _calcYMDHMS, getDefaultDateFormat, _correctYear, _calcHMS, _calcDependentSecond2
+from DateTime.DateTime import _calcSD, _calcDependentSecond, _calcYMDHMS,\
+getDefaultDateFormat, _correctYear, _calcHMS, _calcDependentSecond2, DateTimeError,\
+SyntaxError, DateError, TimeError
STATE_KEY = 'str'
-
-class DateTimeError( Exception ):
- pass
-
-class SyntaxError( DateTimeError ):
- pass
-
-class DateError( DateTimeError ):
- pass
-
-class TimeError( DateTimeError ):
- pass
def DateTime__setstate__(self, state):
if isinstance(state, tuple):
More information about the Erp5-report
mailing list