Reviewers: bch_b2ck.com,
Please review this at http://codereview.appspot.com/117069 Affected files: M trytond/tools/misc.py Index: trytond/tools/misc.py =================================================================== --- a/trytond/tools/misc.py +++ b/trytond/tools/misc.py @@ -279,9 +279,11 @@ self._lock.release() return True # Update named arguments with positional argument values + kwargs_origin = kwargs.copy() kwargs.update(dict(zip(arg_names, args))) if 'context' in kwargs: if isinstance(kwargs['context'], dict): + kwargs['context'] = kwargs['context'].copy() for i in ('_timestamp', '_delete', '_create_records', '_delete_records'): if i in kwargs['context']: @@ -331,7 +333,7 @@ if not find: # Work out new value, cache it and return it # Should copy() this value to avoid futur modf of the cacle ? - result = function(self2, cursor, **dict(kwargs)) + result = function(self2, cursor, *args, **kwargs_origin) self._lock.acquire() try: --~--~---------~--~----~------------~-------~--~----~ [email protected] mailing list -~----------~----~----~----~------~----~------~--~---
