Hello community, here is the log from the commit of package gnuhealth-client for openSUSE:Factory checked in at 2018-05-15 10:14:15 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/gnuhealth-client (Old) and /work/SRC/openSUSE:Factory/.gnuhealth-client.new (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "gnuhealth-client" Tue May 15 10:14:15 2018 rev:3 rq:606655 version:3.2.6 Changes: -------- --- /work/SRC/openSUSE:Factory/gnuhealth-client/gnuhealth-client.changes 2018-01-30 15:44:16.634959055 +0100 +++ /work/SRC/openSUSE:Factory/.gnuhealth-client.new/gnuhealth-client.changes 2018-05-15 10:33:39.295630766 +0200 @@ -1,0 +2,5 @@ +Fri Mar 16 06:52:23 UTC 2018 - [email protected] + +- Bugfix Release 3.2.6 + +------------------------------------------------------------------- Old: ---- gnuhealth-client-3.2.5.tar.gz New: ---- gnuhealth-client-3.2.6.tar.gz ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ gnuhealth-client.spec ++++++ --- /var/tmp/diff_new_pack.KWjO0N/_old 2018-05-15 10:33:40.067602414 +0200 +++ /var/tmp/diff_new_pack.KWjO0N/_new 2018-05-15 10:33:40.067602414 +0200 @@ -2,7 +2,7 @@ # spec file for package gnuhealth-client # # Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany. -# Copyright (c) 2015-2017 Dr. Axel Braun +# Copyright (c) 2015-2018 Dr. Axel Braun # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -19,7 +19,7 @@ %define majorver 3.2 Name: gnuhealth-client -Version: %{majorver}.5 +Version: %{majorver}.6 Release: 0 Summary: The client of the GNU Health Hospital system License: GPL-3.0 ++++++ gnuhealth-client-3.2.5.tar.gz -> gnuhealth-client-3.2.6.tar.gz ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/gnuhealth-client-3.2.5/COPYRIGHT new/gnuhealth-client-3.2.6/COPYRIGHT --- old/gnuhealth-client-3.2.5/COPYRIGHT 2018-01-01 21:47:59.172939423 +0100 +++ new/gnuhealth-client-3.2.6/COPYRIGHT 2018-03-15 08:33:47.586386111 +0100 @@ -10,10 +10,10 @@ # Based on the Tryton GTK Client # # Copyright (C) 2012-2013 Antoine Smolders. -# Copyright (C) 2010-2017 Nicolas Évrard. -# Copyright (C) 2007-2017 Cédric Krier. +# Copyright (C) 2010-2018 Nicolas Évrard. +# Copyright (C) 2007-2018 Cédric Krier. # Copyright (C) 2007-2013 Bertrand Chenal. -# Copyright (C) 2008-2017 B2CK SPRL. +# Copyright (C) 2008-2018 B2CK SPRL. # Copyright (C) 2008-2011 Udo Spallek. # Copyright (C) 2008-2011 virtual things - Preisler & Spallek GbR. # Copyright (C) 2011-2012 Rodrigo Hübner. diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/gnuhealth-client-3.2.5/Changelog new/gnuhealth-client-3.2.6/Changelog --- old/gnuhealth-client-3.2.5/Changelog 2018-01-03 21:56:15.364269283 +0100 +++ new/gnuhealth-client-3.2.6/Changelog 2018-03-15 09:49:27.510890902 +0100 @@ -1,3 +1,12 @@ +3/15/2018 +v 3.2.6 +Apply the follwing patches from Tryton client 4.2.10 +* changeset: 4365:b35ecaff32f9 +* changeset: 4364:fc217da8b841 +* changeset: 4363:b11695d28a3a +* changeset: 4362:7e483f31548f +* changeset: 4361:6a1d72c8d773 + 1/3/2018 v 3.2.5 * Update gnuhealth-client.desktop with the existing categories @@ -39,6 +48,4 @@ TODO : -- Test setup.py - Generate a rst file for documentation and pypi -- remove the roundup information about bugs (config.py) diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/gnuhealth-client-3.2.5/tryton/__init__.py new/gnuhealth-client-3.2.6/tryton/__init__.py --- old/gnuhealth-client-3.2.5/tryton/__init__.py 2018-01-03 21:56:32.665189546 +0100 +++ new/gnuhealth-client-3.2.6/tryton/__init__.py 2018-03-15 09:54:50.651397592 +0100 @@ -1,4 +1,4 @@ # This file is part of GNU Health. The COPYRIGHT file at the top level of # this repository contains the full copyright notices and license terms. -__version__ = "3.2.5" +__version__ = "3.2.6" SERVER_VERSION = "4.2.0" diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/gnuhealth-client-3.2.5/tryton/common/common.py new/gnuhealth-client-3.2.6/tryton/common/common.py --- old/gnuhealth-client-3.2.5/tryton/common/common.py 2017-12-30 20:25:43.097216056 +0100 +++ new/gnuhealth-client-3.2.6/tryton/common/common.py 2018-03-15 08:16:35.365649575 +0100 @@ -294,13 +294,11 @@ def get_toplevel_window(): - windows = [x for x in gtk.window_list_toplevels() - if x.get_window() and x.props.visible - and x.props.type == gtk.WINDOW_TOPLEVEL] - trans2windows = dict((x.get_transient_for(), x) for x in windows) - for window in set(windows) - set(trans2windows.iterkeys()): - return window - return trans2windows[None] + for window in gtk.window_list_toplevels(): + if window.is_active() and window.props.type == gtk.WINDOW_TOPLEVEL: + return window + from tryton.gui.main import Main + return Main.get_main().window def get_sensible_widget(window): diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/gnuhealth-client-3.2.5/tryton/gui/window/view_form/view/form_gtk/char.py new/gnuhealth-client-3.2.6/tryton/gui/window/view_form/view/form_gtk/char.py --- old/gnuhealth-client-3.2.5/tryton/gui/window/view_form/view/form_gtk/char.py 2017-12-25 17:41:35.953840991 +0100 +++ new/gnuhealth-client-3.2.6/tryton/gui/window/view_form/view/form_gtk/char.py 2018-03-15 08:16:35.369649779 +0100 @@ -28,6 +28,10 @@ focus_entry = self.entry.get_child() self.set_popdown([], self.entry) self.entry.connect('changed', self.changed) + self.entry.connect('move-active', self._move_active) + self.entry.connect( + 'scroll-event', + lambda c, e: c.emit_stop_by_name('scroll-event')) else: self.entry = gtk.Entry() focus_entry = self.entry @@ -136,6 +140,10 @@ reset_position(child) self.entry.handler_unblock_by_func(self.changed) + def _move_active(self, combobox, scroll_type): + if not combobox.get_child().get_editable(): + combobox.emit_stop_by_name('move-active') + def _readonly_set(self, value): sensitivity = {True: gtk.SENSITIVITY_OFF, False: gtk.SENSITIVITY_AUTO} super(Char, self)._readonly_set(value) diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/gnuhealth-client-3.2.5/tryton/gui/window/view_form/view/form_gtk/dictionary.py new/gnuhealth-client-3.2.6/tryton/gui/window/view_form/view/form_gtk/dictionary.py --- old/gnuhealth-client-3.2.5/tryton/gui/window/view_form/view/form_gtk/dictionary.py 2017-12-25 17:41:35.957841196 +0100 +++ new/gnuhealth-client-3.2.6/tryton/gui/window/view_form/view/form_gtk/dictionary.py 2018-03-15 08:16:35.369649779 +0100 @@ -93,6 +93,8 @@ lambda w: self.parent_widget._focus_out()) widget.connect('notify::active', lambda w, e: self.parent_widget._focus_out()) + widget.connect( + 'scroll-event', lambda c, e: c.emit_stop_by_name('scroll-event')) selection_shortcuts(widget) # setting completion and selection @@ -451,6 +453,7 @@ for widget in self.fields.values(): widget.set_readonly(readonly) self.wid_text.set_sensitive(not readonly) + self.wid_text.set_editable(not readonly) def _set_button_sensitive(self): self.but_add.set_sensitive(bool( diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/gnuhealth-client-3.2.5/tryton/gui/window/view_form/view/form_gtk/many2many.py new/gnuhealth-client-3.2.6/tryton/gui/window/view_form/view/form_gtk/many2many.py --- old/gnuhealth-client-3.2.5/tryton/gui/window/view_form/view/form_gtk/many2many.py 2017-12-25 17:41:35.957841196 +0100 +++ new/gnuhealth-client-3.2.6/tryton/gui/window/view_form/view/form_gtk/many2many.py 2018-03-15 08:16:35.365649575 +0100 @@ -220,6 +220,7 @@ self._readonly = value self._set_button_sensitive() self.wid_text.set_sensitive(not value) + self.wid_text.set_editable(not value) self._set_label_state() def _required_set(self, value): diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/gnuhealth-client-3.2.5/tryton/gui/window/view_form/view/form_gtk/one2many.py new/gnuhealth-client-3.2.6/tryton/gui/window/view_form/view/form_gtk/one2many.py --- old/gnuhealth-client-3.2.5/tryton/gui/window/view_form/view/form_gtk/one2many.py 2017-12-25 17:41:35.969841812 +0100 +++ new/gnuhealth-client-3.2.6/tryton/gui/window/view_form/view/form_gtk/one2many.py 2018-03-15 08:16:35.365649575 +0100 @@ -301,6 +301,7 @@ and access['write'] and access['read'])) self.wid_text.set_sensitive(self.but_add.get_sensitive()) + self.wid_text.set_editable(self.but_add.get_sensitive()) # New button must be added to focus chain to allow keyboard only # creation when there is no existing record on form view. diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/gnuhealth-client-3.2.5/tryton/gui/window/view_form/view/form_gtk/pyson.py new/gnuhealth-client-3.2.6/tryton/gui/window/view_form/view/form_gtk/pyson.py --- old/gnuhealth-client-3.2.5/tryton/gui/window/view_form/view/form_gtk/pyson.py 2017-12-25 17:41:35.977842223 +0100 +++ new/gnuhealth-client-3.2.6/tryton/gui/window/view_form/view/form_gtk/pyson.py 2018-03-15 08:16:35.361649370 +0100 @@ -19,7 +19,7 @@ return value try: return self.encoder.encode(eval(value, CONTEXT)) - except (ValueError, TypeError, NameError, SyntaxError): + except Exception: return None def set_value(self, record, field): diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/gnuhealth-client-3.2.5/tryton/gui/window/view_form/view/form_gtk/reference.py new/gnuhealth-client-3.2.6/tryton/gui/window/view_form/view/form_gtk/reference.py --- old/gnuhealth-client-3.2.5/tryton/gui/window/view_form/view/form_gtk/reference.py 2017-12-25 17:41:35.945840581 +0100 +++ new/gnuhealth-client-3.2.6/tryton/gui/window/view_form/view/form_gtk/reference.py 2018-03-15 08:16:35.369649779 +0100 @@ -23,6 +23,9 @@ child.connect('focus-out-event', lambda *a: self._focus_out()) child.get_accessible().set_name(attrs.get('string', '')) self.widget_combo.connect('changed', self.sig_changed_combo) + self.widget_combo.connect('move-active', self._move_active) + self.widget_combo.connect( + 'scroll-event', lambda c, e: c.emit_stop_by_name('scroll-event')) selection_shortcuts(self.widget_combo) self.widget_combo.set_focus_chain([child]) @@ -48,6 +51,10 @@ return model, name return '', '' + def _move_active(self, combobox, scroll_type): + if not combobox.get_child().get_editable(): + combobox.emit_stop_by_name('move-active') + def _set_button_sensitive(self): super(Reference, self)._set_button_sensitive() self.widget_combo.get_child().set_editable(not self._readonly) diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/gnuhealth-client-3.2.5/tryton/gui/window/view_form/view/form_gtk/selection.py new/gnuhealth-client-3.2.6/tryton/gui/window/view_form/view/form_gtk/selection.py --- old/gnuhealth-client-3.2.5/tryton/gui/window/view_form/view/form_gtk/selection.py 2017-12-25 17:41:35.965841607 +0100 +++ new/gnuhealth-client-3.2.6/tryton/gui/window/view_form/view/form_gtk/selection.py 2018-03-15 08:16:35.369649779 +0100 @@ -27,7 +27,8 @@ child.connect('focus-out-event', lambda *a: self._focus_out()) self.entry.connect('changed', self.changed) self.entry.connect('move-active', self._move_active) - self.entry.connect('scroll-event', self._scroll_event) + self.entry.connect( + 'scroll-event', lambda c, e: c.emit_stop_by_name('scroll-event')) self.widget.pack_start(self.entry) self.widget.set_focus_chain([child]) @@ -47,10 +48,6 @@ if not combobox.get_child().get_editable(): combobox.emit_stop_by_name('move-active') - def _scroll_event(self, combobox, event): - if not combobox.get_child().get_editable(): - combobox.emit_stop_by_name('scroll-event') - def _readonly_set(self, value): super(Selection, self)._readonly_set(value) self.entry.get_child().set_editable(not value) diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/gnuhealth-client-3.2.5/version new/gnuhealth-client-3.2.6/version --- old/gnuhealth-client-3.2.5/version 2018-01-03 21:56:22.936672071 +0100 +++ new/gnuhealth-client-3.2.6/version 2018-03-15 08:22:53.997003414 +0100 @@ -1 +1 @@ -3.2.5 +3.2.6
