[tryton-debian-vcs] tryton-server branch debian-jessie-2.8 updated. debian/2.8.11-1-2-g873c0f0

Mathias Behrle tryton-debian-vcs at alioth.debian.org
Thu Dec 4 21:45:17 UTC 2014


The following commit has been merged in the debian-jessie-2.8 branch:
https://alioth.debian.org/plugins/scmgit/cgi-bin/gitweb.cgi/?p=tryton/tryton-server.git;a=commitdiff;h=debian/2.8.11-1-2-g873c0f0

commit 873c0f06642d0f6a87130264cd17cc8518bbe608
Author: Mathias Behrle <mathiasb at m9s.biz>
Date:   Thu Dec 4 19:18:03 2014 +0100

    Releasing debian version 2.8.12-1.
    
    Signed-off-by: Mathias Behrle <mathiasb at m9s.biz>

diff --git a/debian/changelog b/debian/changelog
index c4281de..d567094 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,3 +1,9 @@
+tryton-server (2.8.12-1) unstable; urgency=medium
+
+  * Merging upstream version 2.8.12.
+
+ -- Mathias Behrle <mathiasb at m9s.biz>  Thu, 04 Dec 2014 19:18:03 +0100
+
 tryton-server (2.8.11-1) unstable; urgency=high
 
   * Merging upstream version 2.8.11.
commit 21379d041221d3a14879189cb6804145b86df0f6
Author: Mathias Behrle <mathiasb at m9s.biz>
Date:   Thu Dec 4 19:18:03 2014 +0100

    Merging upstream version 2.8.12.

diff --git a/CHANGELOG b/CHANGELOG
index 213becf..52af727 100644
--- a/CHANGELOG
+++ b/CHANGELOG
@@ -1,3 +1,6 @@
+Version 2.8.12 - 2014-11-06
+* Bug fixes (see mercurial logs for details)
+
 Version 2.8.11 - 2014-09-29
 * Bug fixes (see mercurial logs for details)
 * Use literal_eval instead of safe_eval (CVE-2014-6633)
diff --git a/PKG-INFO b/PKG-INFO
index 18cf148..456b3ec 100644
--- a/PKG-INFO
+++ b/PKG-INFO
@@ -1,6 +1,6 @@
 Metadata-Version: 1.1
 Name: trytond
-Version: 2.8.11
+Version: 2.8.12
 Summary: Tryton server
 Home-page: http://www.tryton.org/
 Author: Tryton
diff --git a/trytond.egg-info/PKG-INFO b/trytond.egg-info/PKG-INFO
index 18cf148..456b3ec 100644
--- a/trytond.egg-info/PKG-INFO
+++ b/trytond.egg-info/PKG-INFO
@@ -1,6 +1,6 @@
 Metadata-Version: 1.1
 Name: trytond
-Version: 2.8.11
+Version: 2.8.12
 Summary: Tryton server
 Home-page: http://www.tryton.org/
 Author: Tryton
diff --git a/trytond/model/modelview.py b/trytond/model/modelview.py
index 18a5ec4..7e74c7a 100644
--- a/trytond/model/modelview.py
+++ b/trytond/model/modelview.py
@@ -448,7 +448,9 @@ class ModelView(Model):
         # convert attributes into pyson
         encoder = PYSONEncoder()
         for attr in ('states', 'domain', 'spell', 'colors'):
-            if element.get(attr):
+            if (element.get(attr)
+                    # Avoid double evaluation from inherit with different model
+                    and '__' not in element.get(attr)):
                 element.set(attr, encoder.encode(safe_eval(element.get(attr),
                     CONTEXT)))
 
diff --git a/trytond/pyson.py b/trytond/pyson.py
index 1fc1e64..1e50b16 100644
--- a/trytond/pyson.py
+++ b/trytond/pyson.py
@@ -28,25 +28,25 @@ class PYSON(object):
             return Not(self)
 
     def __and__(self, other):
+        if (isinstance(other, PYSON)
+                and other.types() != set([bool])):
+            other = Bool(other)
         if (isinstance(self, And)
                 and not isinstance(self, Or)):
             self._statements.append(other)
             return self
-        if (isinstance(other, PYSON)
-                and other.types() != set([bool])):
-            other = Bool(other)
         if self.types() != set([bool]):
             return And(Bool(self), other)
         else:
             return And(self, other)
 
     def __or__(self, other):
-        if isinstance(self, Or):
-            self._statements.append(other)
-            return self
         if (isinstance(other, PYSON)
                 and other.types() != set([bool])):
             other = Bool(other)
+        if isinstance(self, Or):
+            self._statements.append(other)
+            return self
         if self.types() != set([bool]):
             return Or(Bool(self), other)
         else:
diff --git a/trytond/version.py b/trytond/version.py
index 1a7efe7..3188711 100644
--- a/trytond/version.py
+++ b/trytond/version.py
@@ -1,6 +1,6 @@
 #This file is part of Tryton.  The COPYRIGHT file at the top level of
 #this repository contains the full copyright notices and license terms.
 PACKAGE = "trytond"
-VERSION = "2.8.11"
+VERSION = "2.8.12"
 LICENSE = "GPL-3"
 WEBSITE = "http://www.tryton.org/"
-- 
tryton-server



More information about the tryton-debian-vcs mailing list