Hello community, here is the log from the commit of package trytond for openSUSE:Leap:15.2 checked in at 2020-03-16 12:21:04 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Leap:15.2/trytond (Old) and /work/SRC/openSUSE:Leap:15.2/.trytond.new.3160 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "trytond" Mon Mar 16 12:21:04 2020 rev:49 rq:783390 version:5.0.19 Changes: -------- --- /work/SRC/openSUSE:Leap:15.2/trytond/trytond.changes 2020-03-10 17:12:28.341398776 +0100 +++ /work/SRC/openSUSE:Leap:15.2/.trytond.new.3160/trytond.changes 2020-03-16 12:21:05.863708904 +0100 @@ -1,0 +2,6 @@ +Tue Mar 10 09:44:05 UTC 2020 - Axel Braun <axel.br...@gmx.de> + +- version 5.0.19 + revert_werkzeug_setup.patch added to remove dependency on werkzeug < 1.0 + +------------------------------------------------------------------- Old: ---- trytond-5.0.18.tar.gz New: ---- revert_werkzeug_setup.patch trytond-5.0.19.tar.gz ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ trytond.spec ++++++ --- /var/tmp/diff_new_pack.lLKZbD/_old 2020-03-16 12:21:06.963709083 +0100 +++ /var/tmp/diff_new_pack.lLKZbD/_new 2020-03-16 12:21:06.967709084 +0100 @@ -20,7 +20,7 @@ %define majorver 5.0 %define base_name tryton Name: trytond -Version: %{majorver}.18 +Version: %{majorver}.19 Release: 0 Summary: An Enterprise Resource Planning (ERP) system License: GPL-3.0-or-later @@ -33,6 +33,7 @@ Source4: %{name}_log.conf Source20: %{name}.service Patch0: fix_werkzeug.patch +Patch1: revert_werkzeug_setup.patch BuildRequires: fdupes BuildRequires: python3-Werkzeug BuildRequires: python3-bcrypt @@ -78,6 +79,7 @@ cp %{SOURCE1} . cp %{SOURCE2} . %patch0 -p1 +%patch1 -p1 %build python3 setup.py build ++++++ revert_werkzeug_setup.patch ++++++ --- a/setup.py +++ b/setup.py @@ -108,7 +108,7 @@ 'python-dateutil', 'polib', 'python-sql >= 0.5', - 'werkzeug < 1.0', + 'werkzeug', 'wrapt', 'passlib', ], ++++++ trytond-5.0.18.tar.gz -> trytond-5.0.19.tar.gz ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/trytond-5.0.18/.drone.yml new/trytond-5.0.19/.drone.yml --- old/trytond-5.0.18/.drone.yml 2019-08-11 19:34:43.000000000 +0200 +++ new/trytond-5.0.19/.drone.yml 2020-03-01 16:45:30.000000000 +0100 @@ -19,6 +19,8 @@ services: postgresql: image: postgres + environment: + - POSTGRES_HOST_AUTH_METHOD=trust when: matrix: DATABASE: postgresql diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/trytond-5.0.18/.hgtags new/trytond-5.0.19/.hgtags --- old/trytond-5.0.18/.hgtags 2020-02-02 16:56:52.000000000 +0100 +++ new/trytond-5.0.19/.hgtags 2020-03-09 18:30:07.000000000 +0100 @@ -37,3 +37,4 @@ 10157c2bfc0f14deb596cef77a90f5aff76a3e5a 5.0.16 45b6add00a6f037d2a2987050959f0148c3ab5cb 5.0.17 d5ceda2dfd6a678e19bd88ef072a4b7a118834b5 5.0.18 +643da5238d7f275e8ecf667b5c05897222acaa24 5.0.19 diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/trytond-5.0.18/CHANGELOG new/trytond-5.0.19/CHANGELOG --- old/trytond-5.0.18/CHANGELOG 2020-02-02 16:56:52.000000000 +0100 +++ new/trytond-5.0.19/CHANGELOG 2020-03-09 18:30:07.000000000 +0100 @@ -1,3 +1,7 @@ +Version 5.0.19 - 2020-03-09 +* Bug fixes (see mercurial logs for details) +* Enable check_access context when checking wizard access (issue9108) + Version 5.0.18 - 2020-02-02 * Bug fixes (see mercurial logs for details) diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/trytond-5.0.18/PKG-INFO new/trytond-5.0.19/PKG-INFO --- old/trytond-5.0.18/PKG-INFO 2020-02-02 16:56:54.000000000 +0100 +++ new/trytond-5.0.19/PKG-INFO 2020-03-09 18:30:09.000000000 +0100 @@ -1,6 +1,6 @@ Metadata-Version: 2.1 Name: trytond -Version: 5.0.18 +Version: 5.0.19 Summary: Tryton server Home-page: http://www.tryton.org/ Author: Tryton diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/trytond-5.0.18/setup.py new/trytond-5.0.19/setup.py --- old/trytond-5.0.18/setup.py 2019-11-15 22:28:08.000000000 +0100 +++ new/trytond-5.0.19/setup.py 2020-02-11 10:01:59.000000000 +0100 @@ -108,7 +108,7 @@ 'python-dateutil', 'polib', 'python-sql >= 0.5', - 'werkzeug', + 'werkzeug < 1.0', 'wrapt', 'passlib', ], diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/trytond-5.0.18/trytond/__init__.py new/trytond-5.0.19/trytond/__init__.py --- old/trytond-5.0.18/trytond/__init__.py 2019-12-16 23:49:00.000000000 +0100 +++ new/trytond-5.0.19/trytond/__init__.py 2020-02-02 16:57:12.000000000 +0100 @@ -5,7 +5,7 @@ import warnings from email import charset -__version__ = "5.0.18" +__version__ = "5.0.19" os.environ['TZ'] = 'UTC' if hasattr(time, 'tzset'): diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/trytond-5.0.18/trytond/model/modelstorage.py new/trytond-5.0.19/trytond/model/modelstorage.py --- old/trytond-5.0.18/trytond/model/modelstorage.py 2019-08-11 19:34:43.000000000 +0200 +++ new/trytond-5.0.19/trytond/model/modelstorage.py 2020-02-16 16:54:09.000000000 +0100 @@ -1346,7 +1346,7 @@ if field.context: eval_fields = fields.get_eval_fields(field.context) for context_field_name in eval_fields: - if context_field_name in field.depends: + if context_field_name not in field.depends: continue context_field = self._fields.get(context_field_name) if context_field not in ffields: diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/trytond-5.0.18/trytond/tests/field_context.py new/trytond-5.0.19/trytond/tests/field_context.py --- old/trytond-5.0.18/trytond/tests/field_context.py 2018-10-01 15:51:19.000000000 +0200 +++ new/trytond-5.0.19/trytond/tests/field_context.py 2020-02-16 16:54:09.000000000 +0100 @@ -17,7 +17,9 @@ child = fields.Many2One('test.field_context.child', 'Child', context={ 'name': Eval('name'), - }) + 'rec_name': Eval('rec_name'), + }, + depends=['name']) class FieldContextChild(ModelSQL): diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/trytond-5.0.18/trytond/tests/test_field_context.py new/trytond-5.0.19/trytond/tests/test_field_context.py --- old/trytond-5.0.18/trytond/tests/test_field_context.py 2018-11-12 17:28:05.000000000 +0100 +++ new/trytond-5.0.19/trytond/tests/test_field_context.py 2020-02-16 16:54:09.000000000 +0100 @@ -24,10 +24,12 @@ parent = Parent(name='foo', child=child) parent.save() self.assertEqual(parent.child._context['name'], 'foo') + self.assertEqual(parent.child._context['rec_name'], '') parent.name = 'bar' parent.save() self.assertEqual(parent.child._context['name'], 'bar') + self.assertEqual(parent.child._context['rec_name'], '') def suite(): diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/trytond-5.0.18/trytond/wizard/wizard.py new/trytond-5.0.19/trytond/wizard/wizard.py --- old/trytond-5.0.18/trytond/wizard/wizard.py 2019-08-11 19:34:43.000000000 +0200 +++ new/trytond-5.0.19/trytond/wizard/wizard.py 2020-03-09 18:30:03.000000000 +0100 @@ -227,18 +227,19 @@ if Transaction().user == 0: return - model = context.get('active_model') - if model: - ModelAccess.check(model, 'read') - groups = set(User.get_groups()) - wizard_groups = ActionWizard.get_groups(cls.__name__, - action_id=context.get('action_id')) - if wizard_groups: - if not groups & wizard_groups: - raise UserError('Calling wizard %s is not allowed!' - % cls.__name__) - elif model: - ModelAccess.check(model, 'write') + with Transaction().set_context(_check_access=True): + model = context.get('active_model') + if model: + ModelAccess.check(model, 'read') + groups = set(User.get_groups()) + wizard_groups = ActionWizard.get_groups(cls.__name__, + action_id=context.get('action_id')) + if wizard_groups: + if not groups & wizard_groups: + raise UserError('Calling wizard %s is not allowed!' + % cls.__name__) + elif model: + ModelAccess.check(model, 'write') @classmethod def create(cls): diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/trytond-5.0.18/trytond.egg-info/PKG-INFO new/trytond-5.0.19/trytond.egg-info/PKG-INFO --- old/trytond-5.0.18/trytond.egg-info/PKG-INFO 2020-02-02 16:56:53.000000000 +0100 +++ new/trytond-5.0.19/trytond.egg-info/PKG-INFO 2020-03-09 18:30:08.000000000 +0100 @@ -1,6 +1,6 @@ Metadata-Version: 2.1 Name: trytond -Version: 5.0.18 +Version: 5.0.19 Summary: Tryton server Home-page: http://www.tryton.org/ Author: Tryton diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/trytond-5.0.18/trytond.egg-info/requires.txt new/trytond-5.0.19/trytond.egg-info/requires.txt --- old/trytond-5.0.18/trytond.egg-info/requires.txt 2020-02-02 16:56:53.000000000 +0100 +++ new/trytond-5.0.19/trytond.egg-info/requires.txt 2020-03-09 18:30:08.000000000 +0100 @@ -3,7 +3,7 @@ python-dateutil polib python-sql>=0.5 -werkzeug +werkzeug<1.0 wrapt passlib