Problem when executing "Resynchronise Terms" wizard on v5

Bug #746478 reported by sraps (Alistek)
14
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Aeroo Reports
Invalid
Low
Unassigned
Odoo Server (MOVED TO GITHUB)
New
Undecided
OpenERP Publisher's Warranty Team

Bug Description

The below exception fires:
* when executing wizard "Administration/Translations/Application Terms/Resynchronise Terms" and
* when there are some other than RML report in the system, for example Aeroo, but most likely no limited only to Aeroo - this would happen with Webkit and Jasper as well;

This exeption has problem only with v5 branch, and has been fixed for OpenERP v6.
Solution - this wizard should parse only the reports it is able to parse, taking guess by type, just like it has been done with v6.

For reference:
http://bazaar.launchpad.net/~openerp/openobject-server/6.0/view/head:/bin/tools/translate.py#L678
http://bazaar.launchpad.net/~openerp/openobject-server/5.0/view/head:/bin/tools/translate.py#L550

===================================
Environment Information :
System : Windows-Vista-6.1.7600
OS Name : nt
Operating System Release : Vista
Operating System Version : 6.1.7600
Operating System Architecture : 32bit
Operating System Locale : nl_BE.cp1252
Python Version : 2.5.2
OpenERP-Client Version : 5.0.14

Last revision No. & ID :Bazaar Package not Found !Traceback (most recent call last):
  File "/home/hazal/openerp-server-5.0.15/bin/netsvc.py", line 299, in dispatch
    result = LocalService(service_name)(method, *params)
  File "/home/hazal/openerp-server-5.0.15/bin/netsvc.py", line 77, in __call__
    return getattr(self, method)(*params)
  File "/home/hazal/openerp-server-5.0.15/bin/service/web_services.py", line 577, in execute
    res = service.execute(db, uid, object, method, *args)
  File "/home/hazal/openerp-server-5.0.15/bin/osv/osv.py", line 58, in wrapper
    return f(self, dbname, *args, **kwargs)
  File "/home/hazal/openerp-server-5.0.15/bin/osv/osv.py", line 119, in execute
    res = pool.execute_cr(cr, uid, obj, method, *args, **kw)
  File "/home/hazal/openerp-server-5.0.15/bin/osv/osv.py", line 111, in execute_cr
    return getattr(object, method)(cr, uid, *args, **kw)
  File "/home/hazal/openerp-server-5.0.15/bin/addons/base/module/wizard/wizard_update_translations.py", line 9, in act_update
    tools.trans_export(this.lang, ['all'], buf, 'csv', dbname=cr.dbname)
  File "/home/hazal/openerp-server-5.0.15/bin/tools/translate.py", line 351, in trans_export
    trans = trans_generate(lang, modules, dbname)
  File "/home/hazal/openerp-server-5.0.15/bin/tools/translate.py", line 546, in trans_generate
    d = etree.XML(xmlstr)
  File "lxml.etree.pyx", line 2512, in lxml.etree.XML (src/lxml/lxml.etree.c:48057)
  File "parser.pxi", line 1545, in lxml.etree._parseMemoryDocument (src/lxml/lxml.etree.c:71812)
  File "parser.pxi", line 1424, in lxml.etree._parseDoc (src/lxml/lxml.etree.c:70673)
  File "parser.pxi", line 938, in lxml.etree._BaseParser._parseDoc (src/lxml/lxml.etree.c:67442)
  File "parser.pxi", line 539, in lxml.etree._ParserContext._handleParseResultDoc (src/lxml/lxml.etree.c:63824)
  File "parser.pxi", line 625, in lxml.etree._handleParseResult (src/lxml/lxml.etree.c:64745)
  File "parser.pxi", line 565, in lxml.etree._raiseParseError (src/lxml/lxml.etree.c:64083)
  File "xmlerror.pxi", line 173, in lxml.etree._BaseErrorLog._buildParseException (src/lxml/lxml.etree.c:23981)
TypeError: 'exceptions.IOError' object is not callable

Changed in openobject-server:
status: New → Confirmed
status: Confirmed → New
Changed in aeroo:
status: New → Confirmed
importance: Undecided → Low
Changed in openobject-server:
assignee: nobody → OpenERP Publisher's Warranty Team (openerp-opw)
Changed in aeroo:
status: Confirmed → Invalid
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.