Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package trytond for openSUSE:Factory checked 
in at 2022-10-25 11:20:22
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/trytond (Old)
 and      /work/SRC/openSUSE:Factory/.trytond.new.2275 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "trytond"

Tue Oct 25 11:20:22 2022 rev:73 rq:1031037 version:6.0.22

Changes:
--------
--- /work/SRC/openSUSE:Factory/trytond/trytond.changes  2022-08-18 
16:49:42.397521269 +0200
+++ /work/SRC/openSUSE:Factory/.trytond.new.2275/trytond.changes        
2022-10-25 11:20:46.818239430 +0200
@@ -1,0 +2,10 @@
+Tue Oct 18 06:49:59 UTC 2022 - Axel Braun <axel.br...@gmx.de>
+
+- Version 6.0.22 - Bugfix Release
+
+-------------------------------------------------------------------
+Wed Oct 12 10:39:49 UTC 2022 - Axel Braun <axel.br...@gmx.de>
+
+- dependency on graphviz added
+
+-------------------------------------------------------------------

Old:
----
  trytond-6.0.21.tar.gz
  trytond-6.0.21.tar.gz.asc

New:
----
  trytond-6.0.22.tar.gz
  trytond-6.0.22.tar.gz.asc

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ trytond.spec ++++++
--- /var/tmp/diff_new_pack.ODZU3A/_old  2022-10-25 11:20:47.370240654 +0200
+++ /var/tmp/diff_new_pack.ODZU3A/_new  2022-10-25 11:20:47.378240671 +0200
@@ -20,7 +20,7 @@
 %define majorver 6.0
 %define base_name tryton
 Name:           trytond
-Version:        %{majorver}.21
+Version:        %{majorver}.22
 Release:        0
 Summary:        An Enterprise Resource Planning (ERP) system
 License:        GPL-3.0-or-later
@@ -45,6 +45,7 @@
 BuildRequires:  python3-setuptools
 BuildRequires:  python3-wrapt
 
+Requires:       graphviz
 Requires:       html2text
 Requires:       libreoffice-pyuno
 Requires:       python3-Genshi

++++++ tryton-server.README.openSUSE ++++++
--- /var/tmp/diff_new_pack.ODZU3A/_old  2022-10-25 11:20:47.454240839 +0200
+++ /var/tmp/diff_new_pack.ODZU3A/_new  2022-10-25 11:20:47.458240849 +0200
@@ -173,7 +173,7 @@
 
 As result you will have a bare Tryton database with the base modules installed.
 
-See: http://doc.tryton.org/4.2/trytond/doc/topics/configuration.html
+See: 
https://docs.tryton.org/projects/server/en/latest/topics/configuration.html#topics-configuration
 
 Installation of the Webfrontend for tryton (sao) from source
 ------------------------------------------------------------

++++++ trytond-6.0.21.tar.gz -> trytond-6.0.22.tar.gz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/trytond-6.0.21/.hgtags new/trytond-6.0.22/.hgtags
--- old/trytond-6.0.21/.hgtags  2022-08-17 23:30:27.000000000 +0200
+++ new/trytond-6.0.22/.hgtags  2022-10-17 23:36:12.000000000 +0200
@@ -45,3 +45,4 @@
 2973349bc8ca02dc5aba4fbf6a2e4ba270af9780 6.0.19
 9d5f5e04e2b0105bf4ca644bf98811d267054514 6.0.20
 221212011e95b8004c93ec76d21f5ffa12e866ee 6.0.21
+3ff41e43408ddccd4ce91170b6536a2f5cd0112b 6.0.22
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/trytond-6.0.21/CHANGELOG new/trytond-6.0.22/CHANGELOG
--- old/trytond-6.0.21/CHANGELOG        2022-08-17 23:30:26.000000000 +0200
+++ new/trytond-6.0.22/CHANGELOG        2022-10-17 23:36:11.000000000 +0200
@@ -1,3 +1,6 @@
+Version 6.0.22 - 2022-10-17
+* Bug fixes (see mercurial logs for details)
+
 Version 6.0.21 - 2022-08-17
 * Bug fixes (see mercurial logs for details)
 
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/trytond-6.0.21/PKG-INFO new/trytond-6.0.22/PKG-INFO
--- old/trytond-6.0.21/PKG-INFO 2022-08-17 23:30:29.119511600 +0200
+++ new/trytond-6.0.22/PKG-INFO 2022-10-17 23:36:14.451380700 +0200
@@ -1,6 +1,6 @@
 Metadata-Version: 2.1
 Name: trytond
-Version: 6.0.21
+Version: 6.0.22
 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.21/trytond/__init__.py 
new/trytond-6.0.22/trytond/__init__.py
--- old/trytond-6.0.21/trytond/__init__.py      2022-07-01 23:06:25.000000000 
+0200
+++ new/trytond-6.0.22/trytond/__init__.py      2022-08-17 23:30:42.000000000 
+0200
@@ -7,7 +7,7 @@
 
 from lxml import etree, objectify
 
-__version__ = "6.0.21"
+__version__ = "6.0.22"
 
 os.environ['TZ'] = 'UTC'
 if hasattr(time, 'tzset'):
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/trytond-6.0.21/trytond/cache.py 
new/trytond-6.0.22/trytond/cache.py
--- old/trytond-6.0.21/trytond/cache.py 2022-04-14 23:25:02.000000000 +0200
+++ new/trytond-6.0.22/trytond/cache.py 2022-09-29 16:53:09.000000000 +0200
@@ -347,15 +347,18 @@
 
     @classmethod
     def _listen(cls, dbname):
-        database = backend.Database(dbname)
-        if not database.has_channel():
-            raise NotImplementedError
-
-        logger.info("listening on channel '%s' of '%s'", cls._channel, dbname)
-        conn = database.get_connection(autocommit=True)
-        pid = os.getpid()
         current_thread = threading.current_thread()
+        pid = os.getpid()
+        conn = None
         try:
+            database = backend.Database(dbname)
+            if not database.has_channel():
+                raise NotImplementedError
+
+            logger.info(
+                "listening on channel '%s' of '%s'", cls._channel, dbname)
+            conn = database.get_connection(autocommit=True)
+
             cursor = conn.cursor()
             cursor.execute('LISTEN "%s"' % cls._channel)
             current_thread.listening = True
@@ -381,7 +384,8 @@
                 "cache listener on '%s' crashed", dbname, exc_info=True)
             raise
         finally:
-            database.put_connection(conn)
+            if conn:
+                database.put_connection(conn)
             with cls._listener_lock[pid]:
                 if cls._listener.get((pid, dbname)) == current_thread:
                     del cls._listener[pid, dbname]
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/trytond-6.0.21/trytond/model/fields/function.py 
new/trytond-6.0.22/trytond/model/fields/function.py
--- old/trytond-6.0.21/trytond/model/fields/function.py 2022-04-14 
23:25:02.000000000 +0200
+++ new/trytond-6.0.22/trytond/model/fields/function.py 2022-10-12 
19:40:58.000000000 +0200
@@ -153,6 +153,18 @@
         return 'names' in signature.parameters
 
 
+for name in [
+        'string', 'help', 'domain', 'states', 'depends', 'display_depends',
+        'edition_depends', 'validation_depends', 'context']:
+    def getter(name):
+        return lambda self: getattr(self._field, name)
+
+    def setter(name):
+        return lambda self, value: setattr(self._field, name, value)
+
+    setattr(Function, name, property(getter(name), setter(name)))
+
+
 class MultiValue(Function):
 
     def __init__(self, field, loading='lazy'):
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/trytond-6.0.21/trytond/tests/test_cache.py 
new/trytond-6.0.22/trytond/tests/test_cache.py
--- old/trytond-6.0.21/trytond/tests/test_cache.py      2022-04-14 
23:25:02.000000000 +0200
+++ new/trytond-6.0.22/trytond/tests/test_cache.py      2022-09-29 
16:53:09.000000000 +0200
@@ -225,6 +225,10 @@
 class LRUDictTransactionTestCase(unittest.TestCase):
     "Test LRUDictTransaction"
 
+    @classmethod
+    def setUpClass(cls):
+        activate_module('tests')
+
     @with_transaction()
     def test_init(self):
         "Test init set to transaction counter"
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/trytond-6.0.21/trytond/wizard/wizard.py 
new/trytond-6.0.22/trytond/wizard/wizard.py
--- old/trytond-6.0.21/trytond/wizard/wizard.py 2022-04-14 23:25:02.000000000 
+0200
+++ new/trytond-6.0.22/trytond/wizard/wizard.py 2022-09-29 16:53:09.000000000 
+0200
@@ -97,13 +97,12 @@
                 if '.' in field_name:
                     continue
                 field = Model_._fields[field_name]
-                field_rec_name = field_name + '.rec_name'
-                if (value
-                        and field._type == 'many2one'
-                        and field_rec_name not in defaults):
+                if value and field._type == 'many2one':
                     Target = pool.get(field.model_name)
                     if 'rec_name' in Target._fields:
-                        defaults[field_rec_name] = Target(value).rec_name
+                        defaults.setdefault(
+                            field_name + '.', {})['rec_name'] = Target(
+                                value).rec_name
         return defaults
 
     def get_buttons(self, wizard, state_name):
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/trytond-6.0.21/trytond.egg-info/PKG-INFO 
new/trytond-6.0.22/trytond.egg-info/PKG-INFO
--- old/trytond-6.0.21/trytond.egg-info/PKG-INFO        2022-08-17 
23:30:28.000000000 +0200
+++ new/trytond-6.0.22/trytond.egg-info/PKG-INFO        2022-10-17 
23:36:13.000000000 +0200
@@ -1,6 +1,6 @@
 Metadata-Version: 2.1
 Name: trytond
-Version: 6.0.21
+Version: 6.0.22
 Summary: Tryton server
 Home-page: http://www.tryton.org/
 Download-URL: http://downloads.tryton.org/6.0/

Reply via email to