← Back to team overview

report-openoffice-team team mailing list archive

[Bug 518373] Re: Error at bzr version

 

sry, it was just addiotional .pyc files. I'll attach a full patch to get
from current bzr to the .zip rc1

** Attachment added: "patchfile bzr rev4 to 1.0rc1 .zip distribution"
   http://launchpadlibrarian.net/38918340/report-openoffice.patch

-- 
Error at bzr version
https://bugs.launchpad.net/bugs/518373
You received this bug notification because you are a member of Report
OpenOffice Team, which is the registrant for Report OpenOffice.

Status in OpenOffice.org Reporting Tool for OpenObject: Confirmed

Bug description:
Hello,
I have installed the zip file provided here and all was fine.
But when I made a branch with bazaar locally and installed the new source (I made it zip of cource)
the following error appears when I click at a report previously created:

 File "/usr/local/lib/python2.6/dist-packages/openerp-server/service/web_services.py", line 682, in go
    (result, format) = obj.create(cr, uid, ids, datas, context)
  File "/home/andreas/addons/5.0/report_openoffice/report_openoffice.py", line 290, in create
    return fnct(cr, uid, ids, data, report_xml, context)
  File "/usr/local/lib/python2.6/dist-packages/openerp-server/report/report_sxw.py", line 426, in create_source_pdf
    return self.create_single_pdf(cr, uid, ids, data, report_xml, context)
  File "/home/andreas/addons/5.0/report_openoffice/report_openoffice.py", line 239, in create_single_pdf
    return self.create_relatorio_report(cr, uid, ids, data, report_xml, context=context, output='pdf')
  File "/home/andreas/addons/5.0/report_openoffice/report_openoffice.py", line 179, in create_relatorio_report
    outzip.writestr(f_info, outzip.read(f_info.filename))
  File "/usr/lib/python2.6/zipfile.py", line 831, in read
    return self.open(name, "r", pwd).read()
  File "/usr/lib/python2.6/zipfile.py", line 871, in open
    zinfo.orig_filename, fname)
BadZipfile: File name in directory "Configurations2/statusbar/" and header "mimetype" differ.

I made a diff of the two trees and there are two lines at report_openoffice.py that are different:

diff -r --normal report_openoffice/report_openoffice.py lp:report-openoffice/report_openoffice/report_openoffice.py
124c124
<                     outzip.writestr(f.filename, inzip.read(f.filename))
---
>                     outzip.writestr(f, inzip.read(f.filename))
179c179
<                 outzip.writestr(f_info.filename, inzip.read(f_info.filename))
---
>                 outzip.writestr(f_info, outzip.read(f_info.filename))


1) In one file there is only f and f_info and not f.filename and f_info.filename
2) one mentions inzip the other outzip

If I make the corrections (the first lines are correct from zip file) it works again

Best regards
Andreas





References