Merge lp:~camptocamp/openerp-swiss-localization/7.0-fix-1324151 into lp:~camptocamp/openerp-swiss-localization/7.0

Proposed by Yannick Vaucher @ Camptocamp
Status: Rejected
Rejected by: Nicolas Bessi - Camptocamp
Proposed branch: lp:~camptocamp/openerp-swiss-localization/7.0-fix-1324151
Merge into: lp:~camptocamp/openerp-swiss-localization/7.0
Diff against target: 12 lines (+2/-1)
1 file modified
l10n_ch_sepa/base_sepa/pain_001.py (+2/-1)
To merge this branch: bzr merge lp:~camptocamp/openerp-swiss-localization/7.0-fix-1324151
Reviewer Review Type Date Requested Status
Camptocamp Pending
Review via email: mp+221249@code.launchpad.net

Description of the change

Setting default_filter to XML to avoid error when validating the XML file.

http://docs.makotemplates.org/en/latest/filtering.html#the-default-filters-argument

To post a comment you must log in.
Revision history for this message
Nicolas Bessi - Camptocamp (nbessi-c2c-deactivatedaccount) wrote :

Rejected as moved to Github https://github.com/OCA/switzerland/pull/5

Unmerged revisions

203. By Yannick Vaucher @ Camptocamp

add a filter on mako entities to ensure XML entities are converted.

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'l10n_ch_sepa/base_sepa/pain_001.py'
2--- l10n_ch_sepa/base_sepa/pain_001.py 2014-04-24 11:07:08 +0000
3+++ l10n_ch_sepa/base_sepa/pain_001.py 2014-05-28 14:52:36 +0000
4@@ -55,7 +55,8 @@
5 dirs += [addons.get_module_resource('l10n_ch_sepa', dir)]
6
7 lookup = TemplateLookup(directories=dirs, input_encoding='utf-8',
8- output_encoding='unicode')
9+ output_encoding='unicode',
10+ default_filters=['unicode', 'x'])
11 self.mako_tpl = lookup.get_template(tmpl_name)
12 self._xml_data = None
13

Subscribers

People subscribed via source and target branches

to all changes: