Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package trytond for openSUSE:Factory checked in at 2023-03-12 19:47:57 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/trytond (Old) and /work/SRC/openSUSE:Factory/.trytond.new.31432 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "trytond" Sun Mar 12 19:47:57 2023 rev:80 rq:1071008 version:6.0.29 Changes: -------- --- /work/SRC/openSUSE:Factory/trytond/trytond.changes 2023-02-20 17:46:45.727739516 +0100 +++ /work/SRC/openSUSE:Factory/.trytond.new.31432/trytond.changes 2023-03-12 19:47:57.927509942 +0100 @@ -1,0 +2,5 @@ +Sun Mar 5 16:01:39 UTC 2023 - Axel Braun <axel.br...@gmx.de> + +- Version 6.0.29 - Bugfix Release + +------------------------------------------------------------------- Old: ---- trytond-6.0.28.tar.gz trytond-6.0.28.tar.gz.asc New: ---- trytond-6.0.29.tar.gz trytond-6.0.29.tar.gz.asc ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ trytond.spec ++++++ --- /var/tmp/diff_new_pack.Ed8tjQ/_old 2023-03-12 19:47:58.651513573 +0100 +++ /var/tmp/diff_new_pack.Ed8tjQ/_new 2023-03-12 19:47:58.651513573 +0100 @@ -20,7 +20,7 @@ %define majorver 6.0 %define base_name tryton Name: trytond -Version: %{majorver}.28 +Version: %{majorver}.29 Release: 0 Summary: An Enterprise Resource Planning (ERP) system License: GPL-3.0-or-later ++++++ trytond-6.0.28.tar.gz -> trytond-6.0.29.tar.gz ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/trytond-6.0.28/CHANGELOG new/trytond-6.0.29/CHANGELOG --- old/trytond-6.0.28/CHANGELOG 2023-02-17 19:08:24.000000000 +0100 +++ new/trytond-6.0.29/CHANGELOG 2023-03-03 19:17:09.000000000 +0100 @@ -1,3 +1,9 @@ + +Version 6.0.29 - 2023-03-03 +--------------------------- +* Bug fixes (see mercurial logs for details) +* Do not alter argument values of with_transaction decorator (#12108) + Version 6.0.28 - 2023-02-17 --------------------------- * Bug fixes (see mercurial logs for details) diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/trytond-6.0.28/PKG-INFO new/trytond-6.0.29/PKG-INFO --- old/trytond-6.0.28/PKG-INFO 2023-02-17 19:08:29.739814000 +0100 +++ new/trytond-6.0.29/PKG-INFO 2023-03-03 19:17:13.499534800 +0100 @@ -1,6 +1,6 @@ Metadata-Version: 2.1 Name: trytond -Version: 6.0.28 +Version: 6.0.29 Summary: Tryton server Home-page: http://www.tryton.org/ Download-URL: http://downloads.tryton.org/6.0/ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/trytond-6.0.28/setup.py new/trytond-6.0.29/setup.py --- old/trytond-6.0.28/setup.py 2022-12-19 13:03:46.000000000 +0100 +++ new/trytond-6.0.29/setup.py 2023-02-27 18:38:02.000000000 +0100 @@ -141,7 +141,7 @@ 'python-dateutil', 'polib', 'python-sql >= 0.5', - 'werkzeug', + 'werkzeug >= 0.12', 'wrapt', 'passlib >= 1.7.0', ], diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/trytond-6.0.28/trytond/__init__.py new/trytond-6.0.29/trytond/__init__.py --- old/trytond-6.0.28/trytond/__init__.py 2023-02-05 21:50:32.000000000 +0100 +++ new/trytond-6.0.29/trytond/__init__.py 2023-02-17 19:08:42.000000000 +0100 @@ -7,7 +7,7 @@ from lxml import etree, objectify -__version__ = "6.0.28" +__version__ = "6.0.29" os.environ['TZ'] = 'UTC' if hasattr(time, 'tzset'): diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/trytond-6.0.28/trytond/model/modelstorage.py new/trytond-6.0.29/trytond/model/modelstorage.py --- old/trytond-6.0.28/trytond/model/modelstorage.py 2023-02-14 01:54:00.000000000 +0100 +++ new/trytond-6.0.29/trytond/model/modelstorage.py 2023-02-23 21:38:37.000000000 +0100 @@ -1182,6 +1182,11 @@ 'many2one', 'one2many', 'many2many', 'one2one', 'reference'}: invalid_records = invalid_relations + elif field._type.endswith('2many'): + invalid_records = [ + r for r in records + if invalid_relations.intersection( + getattr(r, field.name))] else: invalid_records = [ r for r in records diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/trytond-6.0.28/trytond/model/multivalue.py new/trytond-6.0.29/trytond/model/multivalue.py --- old/trytond-6.0.28/trytond/model/multivalue.py 2022-12-19 13:03:46.000000000 +0100 +++ new/trytond-6.0.29/trytond/model/multivalue.py 2023-02-23 21:29:05.000000000 +0100 @@ -20,7 +20,8 @@ Value = self.multivalue_model(field) for fname, field in self._fields.items(): if (field._type == 'one2many' - and field.model_name == Value.__name__): + and field.model_name == Value.__name__ + and not field.filter): return getattr(self, fname) return Value.search([]) diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/trytond-6.0.28/trytond/protocols/dispatcher.py new/trytond-6.0.29/trytond/protocols/dispatcher.py --- old/trytond-6.0.28/trytond/protocols/dispatcher.py 2022-12-19 13:03:46.000000000 +0100 +++ new/trytond-6.0.29/trytond/protocols/dispatcher.py 2023-02-27 18:33:50.000000000 +0100 @@ -189,6 +189,7 @@ except backend.DatabaseOperationalError: if count and not rpc.readonly: transaction.rollback() + transaction.tasks.clear() continue logger.error(log_message, *log_args, exc_info=True) raise diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/trytond-6.0.28/trytond/protocols/wrappers.py new/trytond-6.0.29/trytond/protocols/wrappers.py --- old/trytond-6.0.28/trytond/protocols/wrappers.py 2022-12-19 13:03:46.000000000 +0100 +++ new/trytond-6.0.29/trytond/protocols/wrappers.py 2023-03-03 19:08:02.000000000 +0100 @@ -166,7 +166,6 @@ def decorator(func): @wraps(func) def wrapper(request, pool, *args, **kwargs): - nonlocal user, context readonly_ = readonly # can not modify non local if readonly_ is None: if request.method in {'POST', 'PUT', 'DELETE', 'PATCH'}: @@ -174,19 +173,21 @@ else: readonly_ = True if context is None: - context = {} + context_ = {} else: - context = context.copy() - context['_request'] = request.context + context_ = context.copy() + context_['_request'] = request.context if user == 'request': - user = request.user_id + user_ = request.user_id + else: + user_ = user retry = config.getint('database', 'retry') for count in range(retry, -1, -1): if count != retry: time.sleep(0.02 * (retry - count)) with Transaction().start( - pool.database_name, user, readonly=readonly_, - context=context) as transaction: + pool.database_name, user_, readonly=readonly_, + context=context_) as transaction: try: result = func(request, pool, *args, **kwargs) except backend.DatabaseOperationalError: diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/trytond-6.0.28/trytond.egg-info/PKG-INFO new/trytond-6.0.29/trytond.egg-info/PKG-INFO --- old/trytond-6.0.28/trytond.egg-info/PKG-INFO 2023-02-17 19:08:28.000000000 +0100 +++ new/trytond-6.0.29/trytond.egg-info/PKG-INFO 2023-03-03 19:17:12.000000000 +0100 @@ -1,6 +1,6 @@ Metadata-Version: 2.1 Name: trytond -Version: 6.0.28 +Version: 6.0.29 Summary: Tryton server Home-page: http://www.tryton.org/ Download-URL: http://downloads.tryton.org/6.0/ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/trytond-6.0.28/trytond.egg-info/requires.txt new/trytond-6.0.29/trytond.egg-info/requires.txt --- old/trytond-6.0.28/trytond.egg-info/requires.txt 2023-02-17 19:08:28.000000000 +0100 +++ new/trytond-6.0.29/trytond.egg-info/requires.txt 2023-03-03 19:17:12.000000000 +0100 @@ -5,7 +5,7 @@ python-dateutil polib python-sql>=0.5 -werkzeug +werkzeug>=0.12 wrapt passlib>=1.7.0