Hello community, here is the log from the commit of package proteus for openSUSE:Factory checked in at 2018-05-15 10:13:49 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/proteus (Old) and /work/SRC/openSUSE:Factory/.proteus.new (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "proteus" Tue May 15 10:13:49 2018 rev:6 rq:606647 version:4.2.3 Changes: -------- --- /work/SRC/openSUSE:Factory/proteus/proteus.changes 2018-03-11 15:24:30.600810846 +0100 +++ /work/SRC/openSUSE:Factory/.proteus.new/proteus.changes 2018-05-15 10:33:31.299924431 +0200 @@ -1,0 +2,5 @@ +Sat May 12 12:59:59 UTC 2018 - [email protected] + +- Version 4.2.3 - Bugfix Release + +------------------------------------------------------------------- Old: ---- proteus-4.2.2.tar.gz New: ---- proteus-4.2.3.tar.gz ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ proteus.spec ++++++ --- /var/tmp/diff_new_pack.4Za8at/_old 2018-05-15 10:33:31.771907096 +0200 +++ /var/tmp/diff_new_pack.4Za8at/_new 2018-05-15 10:33:31.771907096 +0200 @@ -19,7 +19,7 @@ %define majorver 4.2 Name: proteus -Version: %{majorver}.2 +Version: %{majorver}.3 Release: 0 Summary: A library to access Tryton's modules like a client License: GPL-3.0-or-later ++++++ proteus-4.2.2.tar.gz -> proteus-4.2.3.tar.gz ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/proteus-4.2.2/.hgtags new/proteus-4.2.3/.hgtags --- old/proteus-4.2.2/.hgtags 2018-03-01 23:00:37.000000000 +0100 +++ new/proteus-4.2.3/.hgtags 2018-05-07 23:38:42.000000000 +0200 @@ -13,3 +13,4 @@ d5b1e8f047748526d9a2cd354da0e86d617ec4c7 4.2.0 e93fec45318a3c7bf3657f65e61ef2f8a7af2658 4.2.1 1403ab2878cb87c6173d863295e73632102e56ba 4.2.2 +f0c92cc914763443499e98a1dc0e2f4256ed76a6 4.2.3 diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/proteus-4.2.2/CHANGELOG new/proteus-4.2.3/CHANGELOG --- old/proteus-4.2.2/CHANGELOG 2018-03-01 23:00:37.000000000 +0100 +++ new/proteus-4.2.3/CHANGELOG 2018-05-07 23:38:41.000000000 +0200 @@ -1,3 +1,6 @@ +Version 4.2.3 - 2018-05-07 +* Bug fixes (see mercurial logs for details) + Version 4.2.2 - 2018-03-01 * Bug fixes (see mercurial logs for details) diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/proteus-4.2.2/PKG-INFO new/proteus-4.2.3/PKG-INFO --- old/proteus-4.2.2/PKG-INFO 2018-03-01 23:00:37.000000000 +0100 +++ new/proteus-4.2.3/PKG-INFO 2018-05-07 23:38:42.000000000 +0200 @@ -1,6 +1,6 @@ Metadata-Version: 1.1 Name: proteus -Version: 4.2.2 +Version: 4.2.3 Summary: Library to access Tryton server as a client Home-page: http://www.tryton.org/ Author: Tryton diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/proteus-4.2.2/proteus/__init__.py new/proteus-4.2.3/proteus/__init__.py --- old/proteus-4.2.2/proteus/__init__.py 2017-11-07 18:54:34.000000000 +0100 +++ new/proteus-4.2.3/proteus/__init__.py 2018-03-01 23:00:49.000000000 +0100 @@ -3,7 +3,7 @@ ''' A library to access Tryton's models like a client. ''' -__version__ = "4.2.2" +__version__ = "4.2.3" __all__ = ['Model', 'Wizard', 'Report'] import sys try: diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/proteus-4.2.2/proteus/pyson.py new/proteus-4.2.3/proteus/pyson.py --- old/proteus-4.2.2/proteus/pyson.py 2016-11-28 18:43:52.000000000 +0100 +++ new/proteus-4.2.3/proteus/pyson.py 2018-05-07 23:38:40.000000000 +0200 @@ -1,12 +1,15 @@ # This file is part of Tryton. The COPYRIGHT file at the top level of # this repository contains the full copyright notices and license terms. -__all__ = ['PYSONEncoder', 'PYSONDecoder', 'Eval', 'Not', 'Bool', 'And', 'Or', - 'Equal', 'Greater', 'Less', 'If', 'Get', 'In', 'Date', 'DateTime', 'Len'] -import json import datetime -from dateutil.relativedelta import relativedelta +import json +from decimal import Decimal from functools import reduce, wraps +from dateutil.relativedelta import relativedelta + +__all__ = ['PYSONEncoder', 'PYSONDecoder', 'Eval', 'Not', 'Bool', 'And', 'Or', + 'Equal', 'Greater', 'Less', 'If', 'Get', 'In', 'Date', 'DateTime', 'Len'] + def reduced_type(types): types = types.copy() @@ -119,6 +122,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/proteus-4.2.2/proteus.egg-info/PKG-INFO new/proteus-4.2.3/proteus.egg-info/PKG-INFO --- old/proteus-4.2.2/proteus.egg-info/PKG-INFO 2018-03-01 23:00:37.000000000 +0100 +++ new/proteus-4.2.3/proteus.egg-info/PKG-INFO 2018-05-07 23:38:42.000000000 +0200 @@ -1,6 +1,6 @@ Metadata-Version: 1.1 Name: proteus -Version: 4.2.2 +Version: 4.2.3 Summary: Library to access Tryton server as a client Home-page: http://www.tryton.org/ Author: Tryton
