[Erp5-report] r43034 nicolas.dumazet - /erp5/trunk/products/ERP5/tests/testCalendar.py

nobody at svn.erp5.org nobody at svn.erp5.org
Fri Feb 4 11:55:49 CET 2011


Author: nicolas.dumazet
Date: Fri Feb  4 11:55:49 2011
New Revision: 43034

URL: http://svn.erp5.org?rev=43034&view=rev
Log:
force a commit, so that accessors are generated.

(Previously, aq_reset was run synchronously, whereas now regeneration happens
as a before commit hook)

Modified:
    erp5/trunk/products/ERP5/tests/testCalendar.py

Modified: erp5/trunk/products/ERP5/tests/testCalendar.py
URL: http://svn.erp5.org/erp5/trunk/products/ERP5/tests/testCalendar.py?rev=43034&r1=43033&r2=43034&view=diff
==============================================================================
--- erp5/trunk/products/ERP5/tests/testCalendar.py [utf8] (original)
+++ erp5/trunk/products/ERP5/tests/testCalendar.py [utf8] Fri Feb  4 11:55:49 2011
@@ -96,6 +96,9 @@ class TestCalendar(ERP5ReportTestCase):
     self._addPropertySheet('Presence Request Period', 'CalendarPeriodConstraint')
     self._addPropertySheet('Group Presence Period', 'CalendarPeriodConstraint')
 
+    # regenerate accessors after category changes & portal type changes
+    transaction.commit()
+
   def beforeTearDown(self):
     transaction.abort()
     for module in (self.portal.group_calendar_module,



More information about the Erp5-report mailing list