← Back to team overview

credativ team mailing list archive

[Bug 906377] [NEW] rml2pdf StringIO exception

 

Public bug reported:

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.

** Affects: openobject-server
     Importance: Undecided
         Status: New


** Tags: 6.0.3 openerp rml server

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

Title:
  rml2pdf StringIO exception

Status in OpenERP Server:
  New

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


Follow ups

References