Hello community, here is the log from the commit of package tryton for openSUSE:Factory checked in at 2018-05-15 10:13:52 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/tryton (Old) and /work/SRC/openSUSE:Factory/.tryton.new (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "tryton" Tue May 15 10:13:52 2018 rev:16 rq:606648 version:4.2.12 Changes: -------- --- /work/SRC/openSUSE:Factory/tryton/tryton.changes 2018-03-11 15:24:32.796732068 +0100 +++ /work/SRC/openSUSE:Factory/.tryton.new/tryton.changes 2018-05-15 10:33:31.963900044 +0200 @@ -1,0 +2,10 @@ +Sat May 12 12:59:44 UTC 2018 - axel.br...@gmx.de + +- Version 4.2.12 - Bugfix Release + +------------------------------------------------------------------- +Wed Mar 21 15:20:18 UTC 2018 - axel.br...@gmx.de + +- Version 4.2.11 - Bugfix Release + +------------------------------------------------------------------- Old: ---- tryton-4.2.10.tar.gz New: ---- tryton-4.2.12.tar.gz ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ tryton.spec ++++++ --- /var/tmp/diff_new_pack.yHaN1a/_old 2018-05-15 10:33:32.771870369 +0200 +++ /var/tmp/diff_new_pack.yHaN1a/_new 2018-05-15 10:33:32.775870222 +0200 @@ -19,7 +19,7 @@ %define majorver 4.2 Name: tryton -Version: %{majorver}.10 +Version: %{majorver}.12 Release: 0 Summary: The client of the Tryton application platform License: GPL-3.0-only ++++++ tryton-4.2.10.tar.gz -> tryton-4.2.12.tar.gz ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/tryton-4.2.10/.hgtags new/tryton-4.2.12/.hgtags --- old/tryton-4.2.10/.hgtags 2018-03-01 22:56:44.000000000 +0100 +++ new/tryton-4.2.12/.hgtags 2018-05-07 23:23:21.000000000 +0200 @@ -24,3 +24,5 @@ b4469b6b237a1422f00b4f7c5edf944ecdc88df2 4.2.8 8c6b627e6b5b0ff4a41d22103146f6b12187823c 4.2.9 f87f133c82332bdf6c95212cfc2154e9f619d912 4.2.10 +26bdb5d99ec5508992d7e31b3a79f4642b62f4f4 4.2.11 +f76587132ea54f6983ed88049858be990e15c41d 4.2.12 diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/tryton-4.2.10/CHANGELOG new/tryton-4.2.12/CHANGELOG --- old/tryton-4.2.10/CHANGELOG 2018-03-01 22:56:44.000000000 +0100 +++ new/tryton-4.2.12/CHANGELOG 2018-05-07 23:23:21.000000000 +0200 @@ -1,3 +1,9 @@ +Version 4.2.12 - 2018-05-07 +* Bug fixes (see mercurial logs for details) + +Version 4.2.11 - 2018-03-15 +* Bug fixes (see mercurial logs for details) + Version 4.2.10 - 2018-03-01 * Bug fixes (see mercurial logs for details) diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/tryton-4.2.10/PKG-INFO new/tryton-4.2.12/PKG-INFO --- old/tryton-4.2.10/PKG-INFO 2018-03-01 22:56:45.000000000 +0100 +++ new/tryton-4.2.12/PKG-INFO 2018-05-07 23:23:22.000000000 +0200 @@ -1,6 +1,6 @@ Metadata-Version: 1.1 Name: tryton -Version: 4.2.10 +Version: 4.2.12 Summary: Tryton client Home-page: http://www.tryton.org/ Author: Tryton diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/tryton-4.2.10/tryton/__init__.py new/tryton-4.2.12/tryton/__init__.py --- old/tryton-4.2.10/tryton/__init__.py 2017-12-05 00:04:26.000000000 +0100 +++ new/tryton-4.2.12/tryton/__init__.py 2018-03-15 21:31:12.000000000 +0100 @@ -1,3 +1,3 @@ # This file is part of Tryton. The COPYRIGHT file at the top level of # this repository contains the full copyright notices and license terms. -__version__ = "4.2.10" +__version__ = "4.2.12" diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/tryton-4.2.10/tryton/common/domain_inversion.py new/tryton-4.2.12/tryton/common/domain_inversion.py --- old/tryton-4.2.10/tryton/common/domain_inversion.py 2017-05-03 18:53:28.000000000 +0200 +++ new/tryton-4.2.12/tryton/common/domain_inversion.py 2018-03-15 21:30:55.000000000 +0100 @@ -70,6 +70,8 @@ context_field = datetime.datetime.min else: context_field = datetime.date.min + if isinstance(context_field, (list, tuple)) and value is None: + value = type(context_field)() if (isinstance(context_field, basestring) and isinstance(value, (list, tuple))): try: @@ -584,6 +586,9 @@ assert eval_domain(domain, {'x': [1, 2]}) assert not eval_domain(domain, {'x': [2]}) + domain = [['x', '=', None]] + assert eval_domain(domain, {'x': []}) + def test_localize(): domain = [['x', '=', 5]] diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/tryton-4.2.10/tryton/common/domain_parser.py new/tryton-4.2.12/tryton/common/domain_parser.py --- old/tryton-4.2.10/tryton/common/domain_parser.py 2017-11-07 18:43:27.000000000 +0100 +++ new/tryton-4.2.12/tryton/common/domain_parser.py 2018-05-07 23:23:18.000000000 +0200 @@ -268,8 +268,6 @@ format_ = context.get('date_format', '%x') + ' %X' try: dt = date_parse(value, format_) - if dt.time() == datetime.time.min: - return dt return untimezoned_date(dt) except ValueError: return @@ -403,16 +401,17 @@ 'format': '"%H:%M:%S"', } for value, result in ( - ('12/04/2002', datetime.datetime(2002, 12, 4)), + ('12/04/2002', untimezoned_date(datetime.datetime(2002, 12, 4))), ('12/04/2002 12:30:00', untimezoned_date( datetime.datetime(2002, 12, 4, 12, 30))), - ('02/03/04', datetime.datetime(2004, 2, 3)), + ('02/03/04', untimezoned_date(datetime.datetime(2004, 2, 3))), ('02/03/04 05:06:07', untimezoned_date( datetime.datetime(2004, 2, 3, 5, 6, 7))), ('test', None), (None, None), ): - assert convert_value(field, value) == result + assert convert_value(field, value) == result, (value, + convert_value(field, value), result) def test_convert_date(): @@ -490,12 +489,12 @@ if not value: return '' format_ = context.get('date_format', '%x') + ' ' + time_format(field) - if (not isinstance(value, datetime.datetime) - or value.time() == datetime.time.min): - format_ = '%x' - time = value + if not isinstance(value, datetime.datetime): + time = datetime.datetime.combine(value, datetime.time.min) else: time = timezoned_date(value) + if time.time() == datetime.time.min: + format_ = '%x' return datetime_strftime(time, format_) def format_date(): @@ -628,7 +627,7 @@ } for value, result in ( (datetime.date(2002, 12, 4), '12/04/2002'), - (datetime.datetime(2002, 12, 4), '12/04/2002'), + (untimezoned_date(datetime.datetime(2002, 12, 4)), '12/04/2002'), (untimezoned_date(datetime.datetime(2002, 12, 4, 12, 30)), '"12/04/2002 12:30:00"'), (False, ''), Binary files old/tryton-4.2.10/tryton/data/locale/bg/LC_MESSAGES/tryton.mo and new/tryton-4.2.12/tryton/data/locale/bg/LC_MESSAGES/tryton.mo differ Binary files old/tryton-4.2.10/tryton/data/locale/ca/LC_MESSAGES/tryton.mo and new/tryton-4.2.12/tryton/data/locale/ca/LC_MESSAGES/tryton.mo differ Binary files old/tryton-4.2.10/tryton/data/locale/cs/LC_MESSAGES/tryton.mo and new/tryton-4.2.12/tryton/data/locale/cs/LC_MESSAGES/tryton.mo differ Binary files old/tryton-4.2.10/tryton/data/locale/de/LC_MESSAGES/tryton.mo and new/tryton-4.2.12/tryton/data/locale/de/LC_MESSAGES/tryton.mo differ Binary files old/tryton-4.2.10/tryton/data/locale/es/LC_MESSAGES/tryton.mo and new/tryton-4.2.12/tryton/data/locale/es/LC_MESSAGES/tryton.mo differ Binary files old/tryton-4.2.10/tryton/data/locale/es_419/LC_MESSAGES/tryton.mo and new/tryton-4.2.12/tryton/data/locale/es_419/LC_MESSAGES/tryton.mo differ Binary files old/tryton-4.2.10/tryton/data/locale/fr/LC_MESSAGES/tryton.mo and new/tryton-4.2.12/tryton/data/locale/fr/LC_MESSAGES/tryton.mo differ Binary files old/tryton-4.2.10/tryton/data/locale/hu_HU/LC_MESSAGES/tryton.mo and new/tryton-4.2.12/tryton/data/locale/hu_HU/LC_MESSAGES/tryton.mo differ Binary files old/tryton-4.2.10/tryton/data/locale/it_IT/LC_MESSAGES/tryton.mo and new/tryton-4.2.12/tryton/data/locale/it_IT/LC_MESSAGES/tryton.mo differ Binary files old/tryton-4.2.10/tryton/data/locale/ja_JP/LC_MESSAGES/tryton.mo and new/tryton-4.2.12/tryton/data/locale/ja_JP/LC_MESSAGES/tryton.mo differ Binary files old/tryton-4.2.10/tryton/data/locale/lo/LC_MESSAGES/tryton.mo and new/tryton-4.2.12/tryton/data/locale/lo/LC_MESSAGES/tryton.mo differ Binary files old/tryton-4.2.10/tryton/data/locale/lt/LC_MESSAGES/tryton.mo and new/tryton-4.2.12/tryton/data/locale/lt/LC_MESSAGES/tryton.mo differ Binary files old/tryton-4.2.10/tryton/data/locale/nl/LC_MESSAGES/tryton.mo and new/tryton-4.2.12/tryton/data/locale/nl/LC_MESSAGES/tryton.mo differ Binary files old/tryton-4.2.10/tryton/data/locale/pl/LC_MESSAGES/tryton.mo and new/tryton-4.2.12/tryton/data/locale/pl/LC_MESSAGES/tryton.mo differ Binary files old/tryton-4.2.10/tryton/data/locale/pt_BR/LC_MESSAGES/tryton.mo and new/tryton-4.2.12/tryton/data/locale/pt_BR/LC_MESSAGES/tryton.mo differ Binary files old/tryton-4.2.10/tryton/data/locale/ru/LC_MESSAGES/tryton.mo and new/tryton-4.2.12/tryton/data/locale/ru/LC_MESSAGES/tryton.mo differ Binary files old/tryton-4.2.10/tryton/data/locale/sl/LC_MESSAGES/tryton.mo and new/tryton-4.2.12/tryton/data/locale/sl/LC_MESSAGES/tryton.mo differ Binary files old/tryton-4.2.10/tryton/data/locale/zh_CN/LC_MESSAGES/tryton.mo and new/tryton-4.2.12/tryton/data/locale/zh_CN/LC_MESSAGES/tryton.mo differ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/tryton-4.2.10/tryton/gui/main.py new/tryton-4.2.12/tryton/gui/main.py --- old/tryton-4.2.10/tryton/gui/main.py 2017-05-03 18:53:28.000000000 +0200 +++ new/tryton-4.2.12/tryton/gui/main.py 2018-05-07 23:23:18.000000000 +0200 @@ -1270,7 +1270,7 @@ res_id = False mode = None try: - view_ids = json.loads(params.get('views', 'false')) + view_ids = json.loads(params.get('views', '[]')) limit = json.loads(params.get('limit', 'null')) name = json.loads(params.get('name', '""')) search_value = json.loads(params.get('search_value', '{}'), diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/tryton-4.2.10/tryton/gui/window/form.py new/tryton-4.2.12/tryton/gui/window/form.py --- old/tryton-4.2.10/tryton/gui/window/form.py 2017-05-03 18:53:28.000000000 +0200 +++ new/tryton-4.2.12/tryton/gui/window/form.py 2018-05-07 23:23:18.000000000 +0200 @@ -524,7 +524,7 @@ return True def sig_close(self, widget=None): - for dialog in self.dialogs[:]: + for dialog in reversed(self.dialogs[:]): dialog.destroy() return self.modified_save() diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/tryton-4.2.10/tryton/gui/window/infobar.py new/tryton-4.2.12/tryton/gui/window/infobar.py --- old/tryton-4.2.10/tryton/gui/window/infobar.py 2017-05-03 18:53:28.000000000 +0200 +++ new/tryton-4.2.12/tryton/gui/window/infobar.py 2018-05-07 23:23:18.000000000 +0200 @@ -17,6 +17,11 @@ def message_info(self, message=None, type_=gtk.MESSAGE_ERROR): if message: + # Work around https://bugzilla.gnome.org/show_bug.cgi?id=710888 + parent = self.info_bar.get_parent() + self.info_bar.unparent() + self.info_bar.set_parent(parent) + self.info_label.set_label(message) self.info_bar.set_message_type(type_) self.info_bar.show_all() diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/tryton-4.2.10/tryton/gui/window/view_form/view/form_gtk/many2many.py new/tryton-4.2.12/tryton/gui/window/view_form/view/form_gtk/many2many.py --- old/tryton-4.2.10/tryton/gui/window/view_form/view/form_gtk/many2many.py 2018-03-01 22:56:42.000000000 +0100 +++ new/tryton-4.2.12/tryton/gui/window/view_form/view/form_gtk/many2many.py 2018-05-07 23:23:18.000000000 +0200 @@ -44,7 +44,7 @@ self.wid_text = PlaceholderEntry() self.wid_text.set_placeholder_text(_('Search')) self.wid_text.set_property('width_chars', 13) - self.wid_text.connect('focus-out-event', lambda *a: self._focus_out()) + self.wid_text.connect('focus-out-event', self._focus_out) self.focus_out = True hbox.pack_start(self.wid_text, expand=True, fill=True) @@ -132,6 +132,7 @@ return False def destroy(self): + self.wid_text.disconnect_by_func(self._focus_out) self.screen.destroy() def _sig_add(self, *args): diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/tryton-4.2.10/tryton/gui/window/view_form/view/form_gtk/one2many.py new/tryton-4.2.12/tryton/gui/window/view_form/view/form_gtk/one2many.py --- old/tryton-4.2.10/tryton/gui/window/view_form/view/form_gtk/one2many.py 2018-03-01 22:56:42.000000000 +0100 +++ new/tryton-4.2.12/tryton/gui/window/view_form/view/form_gtk/one2many.py 2018-05-07 23:23:18.000000000 +0200 @@ -50,8 +50,7 @@ self.wid_text = PlaceholderEntry() self.wid_text.set_placeholder_text(_('Search')) self.wid_text.set_property('width_chars', 13) - self.wid_text.connect('focus-out-event', - lambda *a: self._focus_out()) + self.wid_text.connect('focus-out-event', self._focus_out) hbox.pack_start(self.wid_text, expand=True, fill=True) if int(self.attrs.get('completion', 1)): @@ -230,6 +229,8 @@ return False def destroy(self): + if self.attrs.get('add_remove'): + self.wid_text.disconnect_by_func(self._focus_out) self.screen.destroy() def _on_activate(self): diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/tryton-4.2.10/tryton/gui/window/view_form/view/form_gtk/widget.py new/tryton-4.2.12/tryton/gui/window/view_form/view/form_gtk/widget.py --- old/tryton-4.2.10/tryton/gui/window/view_form/view/form_gtk/widget.py 2017-12-05 00:04:07.000000000 +0100 +++ new/tryton-4.2.12/tryton/gui/window/view_form/view/form_gtk/widget.py 2018-05-07 23:23:18.000000000 +0200 @@ -85,7 +85,7 @@ self.visible = True widget.show() - def _focus_out(self): + def _focus_out(self, *args): if not self.field: return False if not self.visible: diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/tryton-4.2.10/tryton/pyson.py new/tryton-4.2.12/tryton/pyson.py --- old/tryton-4.2.10/tryton/pyson.py 2017-05-03 18:53:29.000000000 +0200 +++ new/tryton-4.2.12/tryton/pyson.py 2018-05-07 23:23:18.000000000 +0200 @@ -2,6 +2,7 @@ # this repository contains the full copyright notices and license terms. import json import datetime +from decimal import Decimal from dateutil.relativedelta import relativedelta from functools import reduce, wraps @@ -117,6 +118,8 @@ ).pyson() else: return Date(obj.year, obj.month, obj.day).pyson() + elif isinstance(obj, Decimal): + return float(obj) return super(PYSONEncoder, self).default(obj) diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/tryton-4.2.10/tryton.egg-info/PKG-INFO new/tryton-4.2.12/tryton.egg-info/PKG-INFO --- old/tryton-4.2.10/tryton.egg-info/PKG-INFO 2018-03-01 22:56:45.000000000 +0100 +++ new/tryton-4.2.12/tryton.egg-info/PKG-INFO 2018-05-07 23:23:22.000000000 +0200 @@ -1,6 +1,6 @@ Metadata-Version: 1.1 Name: tryton -Version: 4.2.10 +Version: 4.2.12 Summary: Tryton client Home-page: http://www.tryton.org/ Author: Tryton