← Back to team overview

openerp-india team mailing list archive

[Bug 1031708] Re: ormcache doesn't work for keyword arguments

 

This is by design as of 6.1, sorry. This cache mechanism is written for
a very specific internal purpose and is not meant to support keyword
arguments. The main keyword argument we are talking about is the
context, and caching results depending on the context is something we
explicitly do not want to do (not to mention that comparing the context
for each call would be very expensive too). We also prefer not to allow
keyword arguments and then ignore them, because that would cause further
headaches when someone starts to depend on it and suddenly receives
results cached for a different context.

If the cache does not work for some use case, then another caching
mechanism should be used, or no caching at all.

Thanks for your understanding,

** Changed in: openobject-server
   Importance: Medium => Undecided

** Changed in: openobject-server
       Status: Confirmed => Won't Fix

-- 
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/1031708

Title:
  ormcache doesn't work for keyword arguments

Status in OpenERP Server:
  Won't Fix

Bug description:
  @ormcache in 6.1 and trunk is not aware of keyword arguments.
  Keyword arguments for cached functions work fine in 6.0.

  This is triggered i.e. in lp:1031442.

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


References