[FIX] use _logger instead of stderr in trml2pdf

lp bug: https://launchpad.net/bugs/906377 fixed

bzr revid: al@openerp.com-20120208013617-22wu77ph56nr58us
This commit is contained in:
Antony Lesuisse 2012-02-08 02:36:17 +01:00
parent f54cf18d22
commit 108e53b253
1 changed files with 1 additions and 1 deletions

View File

@ -218,7 +218,7 @@ class _rml_styles(object,):
if sname in self.styles_obj:
style = self.styles_obj[sname]
else:
sys.stderr.write('Warning: style not found, %s - setting default!\n' % (node.get('style'),) )
_logger.warning('Warning: style not found, %s - setting default!\n' % (node.get('style'),) )
if not style:
style = self.default_style['Normal']
para_update = self._para_style_update(node)