file_open broken for pathinfo=True

Bug #928507 reported by Florent
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Odoo Server (MOVED TO GITHUB)
Fix Released
Low
OpenERP's Framework R&D

Bug Description

This code shows the issue (OpenERP 6.1).

>>> from openerp.tools import file_open
>>> file_open('base/__openerp__.py')
<open file '/home/florent/erpdemo/oo-server/openerp/addons/base/__openerp__.py', mode 'r' at 0x1024d5660>
>>> file_open('base/__openerp__.py', pathinfo=True)
((<open file '/home/florent/erpdemo/oo-server/openerp/addons/base/__openerp__.py', mode 'r' at 0x1024d5660>, '/home/florent/erpdemo/oo-server/openerp/addons/base/__openerp__.py'), '/home/florent/erpdemo/oo-server/openerp/addons/base/__openerp__.py')

--> It returns ((file_obj, filename), filename) instead of (file_obj, filename).

Related branches

Changed in openobject-server:
assignee: nobody → OpenERP's Framework R&D (openerp-dev-framework)
importance: Undecided → Low
status: New → Confirmed
Revision history for this message
Olivier Dony (Odoo) (odo-openerp) wrote :

Florent's patch was merged in trunk (7.0) at revision 4386 revision-id: <email address hidden>

Thanks for the excellent contribution!

Changed in openobject-server:
status: Confirmed → Fix Released
milestone: none → 7.0
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

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