[Erp5-report] r43935 vincent - /erp5/trunk/products/ERP5Type/patches/DateTimePatch.py
nobody at svn.erp5.org
nobody at svn.erp5.org
Thu Mar 3 13:47:53 CET 2011
Author: vincent
Date: Thu Mar 3 13:47:53 2011
New Revision: 43935
URL: http://svn.erp5.org?rev=43935&view=rev
Log:
Empty class state before setting it.
See Zope 2.11 DateTime.__setstate__ (also present in 2.12).
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=43935&r1=43934&r2=43935&view=diff
==============================================================================
--- erp5/trunk/products/ERP5Type/patches/DateTimePatch.py [utf8] (original)
+++ erp5/trunk/products/ERP5Type/patches/DateTimePatch.py [utf8] Thu Mar 3 13:47:53 2011
@@ -35,6 +35,7 @@ SyntaxError, DateError, TimeError, local
STATE_KEY = 'str'
def DateTime__setstate__(self, state):
+ self.__dict__.clear()
if isinstance(state, tuple):
t, tz = state
ms = (t - math.floor(t))
More information about the Erp5-report
mailing list