← Back to team overview

openerp-india team mailing list archive

[Bug 906377] Re: rml2pdf StringIO exception

 

** Branch linked: lp:~aristobulo/+junk/openobject-server-fixes

-- 
You received this bug notification because you are a member of OpenERP
Indian Team, which is subscribed to OpenERP Server.
https://bugs.launchpad.net/bugs/906377

Title:
  rml2pdf StringIO exception

Status in OpenERP Server:
  Confirmed

Bug description:
  When a rml style is not declared a warning msg is raised, the problem is that this msg will try to output
  thru stderr and if a console output (or redirected console output to a file) doesn't exist this will fall in
  a StringIO exception, even if the pdf was correctly generated.

  I fixed this by declaring a logger for _rml_style class and using it to show the warning log (as IMHO should be
  the correct way to output all kind of log msgs)

  I'm attaching the patch for this bug.

  Best regards.

To manage notifications about this bug go to:
https://bugs.launchpad.net/openobject-server/+bug/906377/+subscriptions


References