← Back to team overview

openerp-community-reviewer team mailing list archive

[Bug 940439] Re: Once we save dbfilter in configuration file, It is ignored

 

** Changed in: ocb-server/7.0
       Status: Fix Committed => Fix Released

** Changed in: ocb-server/6.1
       Status: Fix Committed => Fix Released

-- 
You received this bug notification because you are a member of OpenERP
Community Backports Team, which is subscribed to OpenERP Community
Backports (Server).
https://bugs.launchpad.net/bugs/940439

Title:
  Once we save dbfilter in configuration file, It is ignored

Status in OpenERP Community Backports (Server):
  Fix Released
Status in OpenERP Community Backports (Server) 6.1 series:
  Fix Released
Status in OpenERP Community Backports (Server) 7.0 series:
  Fix Released
Status in OpenERP Server:
  Fix Committed

Bug description:
  Version: 6.1-1-1 as packaged for ubuntu
  Platform: Ubuntu Oneiric Ocelot 11.10

  erp61 GA was announced yesterday. So, I eagerly installed it today,
  and I was delighted about the new dbfilter (using a regular
  expression). However, every pattern I put into the configuration file
  was ignored.

  Thankfully, openerp is open source, so I was able to debug what was
  happening to my value. It was being clobbered by the default value
  during the check whether it had been assigned at the command line.

  /usr/share/pyshared/openerp/tools/config.py line 387
  "self.options[arg] = getattr(opt, arg)

  The problem is in line 154. The default value is specified using
  "default='.*'" instead of the proper "my_default='.*'".

  Cheers,
  Sebastian

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