[Erp5-report] r35427 nicolas - /erp5/trunk/products/ERP5OOo/tests/testOOoDynamicStyle.py
nobody at svn.erp5.org
nobody at svn.erp5.org
Tue May 18 15:02:49 CEST 2010
Author: nicolas
Date: Tue May 18 15:02:45 2010
New Revision: 35427
URL: http://svn.erp5.org?rev=35427&view=rev
Log:
DummyLocalizer is not persistent but still stored on persistent storage.
Any modifications of this object is not detected. An old version
of this object is returned in a new transaction.
This patch replace old Localizer by new one to avoid
this side effect.
Another modification could be to add persistent.Persistent class in
inheritance of DummyLocalizer.
Modified:
erp5/trunk/products/ERP5OOo/tests/testOOoDynamicStyle.py
Modified: erp5/trunk/products/ERP5OOo/tests/testOOoDynamicStyle.py
URL: http://svn.erp5.org/erp5/trunk/products/ERP5OOo/tests/testOOoDynamicStyle.py?rev=35427&r1=35426&r2=35427&view=diff
==============================================================================
--- erp5/trunk/products/ERP5OOo/tests/testOOoDynamicStyle.py [utf8] (original)
+++ erp5/trunk/products/ERP5OOo/tests/testOOoDynamicStyle.py [utf8] Tue May 18 15:02:45 2010
@@ -126,6 +126,7 @@
# 2. test a normal case, change the language to 'en',
# so that the stylesheet changes dynamically.
+ self.getPortal().Localizer = DummyLocalizer()
self.getPortal().Localizer.changeLanguage('en')
response = self.publish('/' + self.getPortal().Dynamic_viewAsOdt.absolute_url(1))
self._validate(response.getBody())
More information about the Erp5-report
mailing list