← Back to team overview

credativ team mailing list archive

[Bug 906377] Re: rml2pdf StringIO exception

 

** Changed in: openobject-server
   Importance: Undecided => Medium

** Changed in: openobject-server
       Status: New => Confirmed

** Changed in: openobject-server
     Assignee: (unassigned) => OpenERP's Framework R&D (openerp-dev-framework)

-- 
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:
  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