Commit ee1bb6e7 authored by Nicolas Delaby's avatar Nicolas Delaby

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.


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@35427 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent e6a17961
......@@ -126,6 +126,7 @@ return getattr(context, "%s_%s" % (parameter, current_language))
# 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())
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment