[FIX] trml2pdf: reportlab 2.4.4 doesn't support the previous syntax (sname in self.default_style)

bzr revid: qdp-launchpad@openerp.com-20130603093048-4iwgnb4hxhsxrazc
This commit is contained in:
Quentin (OpenERP) 2013-06-03 11:30:48 +02:00
parent 9705c37dfa
commit 232e24b7a4
1 changed files with 1 additions and 1 deletions

View File

@ -160,7 +160,7 @@ class _rml_styles(object,):
for style in node.findall('paraStyle'):
sname = style.get('name')
self.styles[sname] = self._para_style_update(style)
if sname in self.default_style:
if self.default_style.has_key(sname):
for key, value in self.styles[sname].items():
setattr(self.default_style[sname], key, value)
else: