Hello community, here is the log from the commit of package trytond for openSUSE:Factory checked in at 2018-03-11 15:24:33 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/trytond (Old) and /work/SRC/openSUSE:Factory/.trytond.new (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "trytond" Sun Mar 11 15:24:33 2018 rev:17 rq:584727 version:4.2.10 Changes: -------- --- /work/SRC/openSUSE:Factory/trytond/trytond.changes 2018-02-25 11:47:01.876455098 +0100 +++ /work/SRC/openSUSE:Factory/.trytond.new/trytond.changes 2018-03-11 15:24:34.272679121 +0100 @@ -1,0 +2,5 @@ +Fri Mar 2 09:11:30 UTC 2018 - axel.br...@gmx.de + +- Version 4.2.10 - Bugfix Release + +------------------------------------------------------------------- Old: ---- trytond-4.2.9.tar.gz New: ---- trytond-4.2.10.tar.gz ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ trytond.spec ++++++ --- /var/tmp/diff_new_pack.n7dQNv/_old 2018-03-11 15:24:35.856622298 +0100 +++ /var/tmp/diff_new_pack.n7dQNv/_new 2018-03-11 15:24:35.860622154 +0100 @@ -20,11 +20,11 @@ %define majorver 4.2 %define base_name tryton Name: trytond -Version: %{majorver}.9 +Version: %{majorver}.10 Release: 0 Summary: An Enterprise Resource Planning (ERP) system -License: GPL-3.0+ +License: GPL-3.0-or-later Group: Productivity/Office/Management Url: http://www.tryton.org/ Source0: http://downloads.tryton.org/%{majorver}/%{name}-%{version}.tar.gz ++++++ trytond-4.2.9.tar.gz -> trytond-4.2.10.tar.gz ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/trytond-4.2.9/.hgtags new/trytond-4.2.10/.hgtags --- old/trytond-4.2.9/.hgtags 2018-01-04 23:49:34.000000000 +0100 +++ new/trytond-4.2.10/.hgtags 2018-03-01 22:50:27.000000000 +0100 @@ -24,3 +24,4 @@ 5f301276879f4fe742f998fa483c83126a8b3a4a 4.2.7 6162731451b1515b645a72332d19c4e83e207f15 4.2.8 1f035cc6f6bc9af970d6db658c1acb3b0b211916 4.2.9 +85cd8ba33305eb48db50a52d7d8eb473f6387850 4.2.10 diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/trytond-4.2.9/CHANGELOG new/trytond-4.2.10/CHANGELOG --- old/trytond-4.2.9/CHANGELOG 2018-01-04 23:49:34.000000000 +0100 +++ new/trytond-4.2.10/CHANGELOG 2018-03-01 22:50:27.000000000 +0100 @@ -1,3 +1,6 @@ +Version 4.2.10 - 2018-03-01 +* Bug fixes (see mercurial logs for details) + Version 4.2.9 - 2018-01-04 * Bug fixes (see mercurial logs for details) diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/trytond-4.2.9/COPYRIGHT new/trytond-4.2.10/COPYRIGHT --- old/trytond-4.2.9/COPYRIGHT 2018-01-04 23:49:33.000000000 +0100 +++ new/trytond-4.2.10/COPYRIGHT 2018-03-01 22:50:27.000000000 +0100 @@ -3,7 +3,7 @@ Copyright (C) 2007-2013 Bertrand Chenal. Copyright (C) 2008-2018 B2CK SPRL. Copyright (C) 2011 Openlabs Technologies & Consulting (P) Ltd. -Copyright (C) 2011-2017 Nicolas Évrard. +Copyright (C) 2011-2018 Nicolas Évrard. This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/trytond-4.2.9/PKG-INFO new/trytond-4.2.10/PKG-INFO --- old/trytond-4.2.9/PKG-INFO 2018-01-04 23:49:35.000000000 +0100 +++ new/trytond-4.2.10/PKG-INFO 2018-03-01 22:50:28.000000000 +0100 @@ -1,12 +1,13 @@ Metadata-Version: 1.1 Name: trytond -Version: 4.2.9 +Version: 4.2.10 Summary: Tryton server Home-page: http://www.tryton.org/ Author: Tryton Author-email: issue_trac...@tryton.org License: GPL-3 Download-URL: http://downloads.tryton.org/4.2/ +Description-Content-Type: UNKNOWN Description: trytond ======= diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/trytond-4.2.9/doc/topics/models/index.rst new/trytond-4.2.10/doc/topics/models/index.rst --- old/trytond-4.2.9/doc/topics/models/index.rst 2017-05-03 18:52:26.000000000 +0200 +++ new/trytond-4.2.10/doc/topics/models/index.rst 2018-03-01 22:50:25.000000000 +0100 @@ -28,7 +28,6 @@ fields:: from trytond.model import ModelView, ModelSQL, fields - from trytond.pool import Pool class Party(ModelSQL, ModelView): "Party" @@ -36,9 +35,8 @@ name = fields.Char('Name') code = fields.Char('Code') - Pool.register(Party) - -The class must be registered in the :ref:`Pool <ref-pool>`. +The class must be registered in the :ref:`Pool <ref-pool>` by the `register()` +method of the :ref:`module <topics-modules>`. Model classes are essentially data mappers to records and Model instances are records. diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/trytond-4.2.9/trytond/__init__.py new/trytond-4.2.10/trytond/__init__.py --- old/trytond-4.2.9/trytond/__init__.py 2017-12-04 23:58:55.000000000 +0100 +++ new/trytond-4.2.10/trytond/__init__.py 2018-01-04 23:50:07.000000000 +0100 @@ -5,7 +5,7 @@ import logging from email import charset -__version__ = "4.2.9" +__version__ = "4.2.10" logger = logging.getLogger(__name__) os.environ['TZ'] = 'UTC' diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/trytond-4.2.9/trytond/backend/postgresql/database.py new/trytond-4.2.10/trytond/backend/postgresql/database.py --- old/trytond-4.2.9/trytond/backend/postgresql/database.py 2017-05-03 18:52:26.000000000 +0200 +++ new/trytond-4.2.10/trytond/backend/postgresql/database.py 2018-03-01 22:50:25.000000000 +0100 @@ -155,18 +155,20 @@ return res connection = self.get_connection() - cursor = connection.cursor() - cursor.execute('SELECT datname FROM pg_database ' - 'WHERE datistemplate = false ORDER BY datname') - res = [] - for db_name, in cursor: - try: - with connect(self.dsn(db_name)) as conn: - if self._test(conn): - res.append(db_name) - except Exception: - continue - self.put_connection(connection) + try: + cursor = connection.cursor() + cursor.execute('SELECT datname FROM pg_database ' + 'WHERE datistemplate = false ORDER BY datname') + res = [] + for db_name, in cursor: + try: + with connect(self.dsn(db_name)) as conn: + if self._test(conn): + res.append(db_name) + except Exception: + continue + finally: + self.put_connection(connection) Database._list_cache = res Database._list_cache_timestamp = now @@ -176,32 +178,34 @@ from trytond.modules import get_module_info connection = self.get_connection() - cursor = connection.cursor() - sql_file = os.path.join(os.path.dirname(__file__), 'init.sql') - with open(sql_file) as fp: - for line in fp.read().split(';'): - if (len(line) > 0) and (not line.isspace()): - cursor.execute(line) - - for module in ('ir', 'res'): - state = 'not activated' - if module in ('ir', 'res'): - state = 'to activate' - info = get_module_info(module) - cursor.execute('SELECT NEXTVAL(\'ir_module_id_seq\')') - module_id = cursor.fetchone()[0] - cursor.execute('INSERT INTO ir_module ' - '(id, create_uid, create_date, name, state) ' - 'VALUES (%s, %s, now(), %s, %s)', - (module_id, 0, module, state)) - for dependency in info.get('depends', []): - cursor.execute('INSERT INTO ir_module_dependency ' - '(create_uid, create_date, module, name) ' - 'VALUES (%s, now(), %s, %s)', - (0, module_id, dependency)) - - connection.commit() - self.put_connection(connection) + try: + cursor = connection.cursor() + sql_file = os.path.join(os.path.dirname(__file__), 'init.sql') + with open(sql_file) as fp: + for line in fp.read().split(';'): + if (len(line) > 0) and (not line.isspace()): + cursor.execute(line) + + for module in ('ir', 'res'): + state = 'not activated' + if module in ('ir', 'res'): + state = 'to activate' + info = get_module_info(module) + cursor.execute('SELECT NEXTVAL(\'ir_module_id_seq\')') + module_id = cursor.fetchone()[0] + cursor.execute('INSERT INTO ir_module ' + '(id, create_uid, create_date, name, state) ' + 'VALUES (%s, %s, now(), %s, %s)', + (module_id, 0, module, state)) + for dependency in info.get('depends', []): + cursor.execute('INSERT INTO ir_module_dependency ' + '(create_uid, create_date, module, name) ' + 'VALUES (%s, now(), %s, %s)', + (0, module_id, dependency)) + + connection.commit() + finally: + self.put_connection(connection) def test(self): connection = self.get_connection() diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/trytond-4.2.9/trytond/model/modelsql.py new/trytond-4.2.10/trytond/model/modelsql.py --- old/trytond-4.2.9/trytond/model/modelsql.py 2017-08-08 18:17:33.000000000 +0200 +++ new/trytond-4.2.10/trytond/model/modelsql.py 2018-03-01 22:50:25.000000000 +0100 @@ -304,10 +304,10 @@ cls.raise_user_error('foreign_model_missing', error_args=error_args) for name, _, error in cls._sql_constraints: - if name in str(exception): + if name in unicode(exception): cls.raise_user_error(error) for name, error in cls._sql_error_messages.iteritems(): - if name in str(exception): + if name in unicode(exception): cls.raise_user_error(error) @classmethod diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/trytond-4.2.9/trytond/model/modelstorage.py new/trytond-4.2.10/trytond/model/modelstorage.py --- old/trytond-4.2.9/trytond/model/modelstorage.py 2017-11-10 11:38:17.000000000 +0100 +++ new/trytond-4.2.10/trytond/model/modelstorage.py 2018-03-01 22:50:25.000000000 +0100 @@ -1067,8 +1067,8 @@ if value is None: return if isinstance(value, Decimal): - if (value.quantize(Decimal(str(10.0 ** -digits[1]))) - != value): + exp = Decimal('.'.join(['0', '0' * digits[1]])) + if value.quantize(exp) != value: raise_user_error(value) elif backend.name() != 'mysql': if not (round(value, digits[1]) == float(value)): diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/trytond-4.2.9/trytond.egg-info/PKG-INFO new/trytond-4.2.10/trytond.egg-info/PKG-INFO --- old/trytond-4.2.9/trytond.egg-info/PKG-INFO 2018-01-04 23:49:35.000000000 +0100 +++ new/trytond-4.2.10/trytond.egg-info/PKG-INFO 2018-03-01 22:50:28.000000000 +0100 @@ -1,12 +1,13 @@ Metadata-Version: 1.1 Name: trytond -Version: 4.2.9 +Version: 4.2.10 Summary: Tryton server Home-page: http://www.tryton.org/ Author: Tryton Author-email: issue_trac...@tryton.org License: GPL-3 Download-URL: http://downloads.tryton.org/4.2/ +Description-Content-Type: UNKNOWN Description: trytond ======= diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/trytond-4.2.9/trytond.egg-info/requires.txt new/trytond-4.2.10/trytond.egg-info/requires.txt --- old/trytond-4.2.9/trytond.egg-info/requires.txt 2018-01-04 23:49:35.000000000 +0100 +++ new/trytond-4.2.10/trytond.egg-info/requires.txt 2018-03-01 22:50:28.000000000 +0100 @@ -1,9 +1,9 @@ -lxml >= 2.0 -relatorio >= 0.2.0 +lxml>=2.0 +relatorio>=0.2.0 Genshi python-dateutil polib -python-sql >= 0.4 +python-sql>=0.4 werkzeug wrapt @@ -17,7 +17,7 @@ MySQL-python [PostgreSQL] -psycopg2 >= 2.5 +psycopg2>=2.5 [cdecimal] cdecimal