← Back to team overview

openerp-india team mailing list archive

[Bug 928507] Re: file_open broken for pathinfo=True

 

** Branch linked: lp:~florent.x/openobject-server/trunk-tools-file_open

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

Title:
  file_open broken for pathinfo=True

Status in OpenERP Server:
  New

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).

To manage notifications about this bug go to:
https://bugs.launchpad.net/openobject-server/+bug/928507/+subscriptions


References