Hello community,

here is the log from the commit of package proteus for openSUSE:Factory checked 
in at 2019-10-31 22:29:56
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/proteus (Old)
 and      /work/SRC/openSUSE:Factory/.proteus.new.2990 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "proteus"

Thu Oct 31 22:29:56 2019 rev:12 rq:744375 version:4.6.8

Changes:
--------
--- /work/SRC/openSUSE:Factory/proteus/proteus.changes  2019-09-23 
12:46:20.753521827 +0200
+++ /work/SRC/openSUSE:Factory/.proteus.new.2990/proteus.changes        
2019-10-31 22:29:57.500696738 +0100
@@ -1,0 +2,5 @@
+Thu Oct 24 06:50:22 UTC 2019 - Axel Braun <[email protected]>
+
+- Version 4.6.8 - Bugfix Release
+
+-------------------------------------------------------------------

Old:
----
  proteus-4.6.7.tar.gz

New:
----
  proteus-4.6.8.tar.gz

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

Other differences:
------------------
++++++ proteus.spec ++++++
--- /var/tmp/diff_new_pack.QKOQiA/_old  2019-10-31 22:29:58.524698117 +0100
+++ /var/tmp/diff_new_pack.QKOQiA/_new  2019-10-31 22:29:58.528698123 +0100
@@ -19,7 +19,7 @@
 
 %define majorver 4.6
 Name:           proteus
-Version:        %{majorver}.7
+Version:        %{majorver}.8
 Release:        0
 Summary:        A library to access Tryton's modules like a client
 License:        GPL-3.0-or-later

++++++ proteus-4.6.7.tar.gz -> proteus-4.6.8.tar.gz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/proteus-4.6.7/.hgtags new/proteus-4.6.8/.hgtags
--- old/proteus-4.6.7/.hgtags   2019-09-15 14:27:30.000000000 +0200
+++ new/proteus-4.6.8/.hgtags   2019-10-24 00:22:43.000000000 +0200
@@ -20,3 +20,4 @@
 4b75c46d9bf62a307b5c6e23a13e5500a6f1f24f 4.6.5
 8d23b72d421c4b63f59c547c127be62d561a0e31 4.6.6
 8dbfcb22e5c639fafe68c6b6ff7043216aa89b33 4.6.7
+4394fc330f5e1892ac336353c7198526603aa290 4.6.8
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/proteus-4.6.7/CHANGELOG new/proteus-4.6.8/CHANGELOG
--- old/proteus-4.6.7/CHANGELOG 2019-09-15 14:27:30.000000000 +0200
+++ new/proteus-4.6.8/CHANGELOG 2019-10-24 00:22:42.000000000 +0200
@@ -1,3 +1,6 @@
+Version 4.6.8 - 2019-10-23
+* Bug fixes (see mercurial logs for details)
+
 Version 4.6.7 - 2019-09-15
 * Bug fixes (see mercurial logs for details)
 
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/proteus-4.6.7/PKG-INFO new/proteus-4.6.8/PKG-INFO
--- old/proteus-4.6.7/PKG-INFO  2019-09-15 14:27:31.000000000 +0200
+++ new/proteus-4.6.8/PKG-INFO  2019-10-24 00:22:43.000000000 +0200
@@ -1,6 +1,6 @@
 Metadata-Version: 2.1
 Name: proteus
-Version: 4.6.7
+Version: 4.6.8
 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.6.7/proteus/__init__.py 
new/proteus-4.6.8/proteus/__init__.py
--- old/proteus-4.6.7/proteus/__init__.py       2019-09-12 23:23:23.000000000 
+0200
+++ new/proteus-4.6.8/proteus/__init__.py       2019-10-23 13:22:47.000000000 
+0200
@@ -19,7 +19,7 @@
 
 import proteus.config
 
-__version__ = "4.6.7"
+__version__ = "4.6.8"
 __all__ = ['Model', 'Wizard', 'Report']
 
 _MODELS = threading.local()
@@ -115,12 +115,12 @@
         self.__doc__ = definition['string']
 
     def __get__(self, instance, owner):
-        if instance.id > 0:
+        if instance.id >= 0:
             instance._read(self.name)
         return instance._values.get(self.name, self.default)
 
     def __set__(self, instance, value):
-        if instance.id > 0:
+        if instance.id >= 0:
             instance._read(self.name)
         previous = getattr(instance, self.name)
         instance._values[self.name] = value
@@ -661,9 +661,9 @@
 
     def __init__(self, id=None, _default=True, **kwargs):
         super(Model, self).__init__()
-        if id:
+        if id is not None:
             assert not kwargs
-        self.__id = id or Model.__counter
+        self.__id = id if id is not None else Model.__counter
         if self.__id < 0:
             Model.__counter -= 1
         self._values = {}  # store the values of fields
@@ -819,7 +819,7 @@
         for record in records:
             assert proxy == record._proxy
             assert config == record._config
-            if record.id > 0:
+            if record.id >= 0:
                 context['_timestamp'].update(record._get_timestamp())
                 delete.append(record.id)
         if delete:
@@ -948,8 +948,10 @@
         else:
             definitions = self._fields.iteritems()
         for field, definition in definitions:
+            if field == 'id':
+                continue
             if not fields:
-                if field == 'id' or (skip and field in skip):
+                if skip and field in skip:
                     continue
                 if (self.id >= 0
                         and (field not in self._values
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/proteus-4.6.7/proteus/tests/test_model.py 
new/proteus-4.6.8/proteus/tests/test_model.py
--- old/proteus-4.6.7/proteus/tests/test_model.py       2018-08-20 
22:55:18.000000000 +0200
+++ new/proteus-4.6.8/proteus/tests/test_model.py       2019-10-23 
00:48:36.000000000 +0200
@@ -24,6 +24,11 @@
         admin = User.find([('login', '=', 'admin')])[0]
         self.assertEqual(int(admin), admin.id)
 
+    def test_id_zero(self):
+        User = Model.get('res.user')
+        root = User(0)
+        self.assertEqual(root.login, 'root')
+
     def test_find(self):
         User = Model.get('res.user')
         admin = User.find([('login', '=', 'admin')])[0]
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/proteus-4.6.7/proteus.egg-info/PKG-INFO 
new/proteus-4.6.8/proteus.egg-info/PKG-INFO
--- old/proteus-4.6.7/proteus.egg-info/PKG-INFO 2019-09-15 14:27:31.000000000 
+0200
+++ new/proteus-4.6.8/proteus.egg-info/PKG-INFO 2019-10-24 00:22:43.000000000 
+0200
@@ -1,6 +1,6 @@
 Metadata-Version: 2.1
 Name: proteus
-Version: 4.6.7
+Version: 4.6.8
 Summary: Library to access Tryton server as a client
 Home-page: http://www.tryton.org/
 Author: Tryton


Reply via email to