[tryton-debian-vcs] tryton-server branch upstream-3.0 updated. upstream/3.0.9-1-g75faefe

Mathias Behrle tryton-debian-vcs at alioth.debian.org
Tue Mar 31 12:45:38 UTC 2015


The following commit has been merged in the upstream-3.0 branch:
https://alioth.debian.org/plugins/scmgit/cgi-bin/gitweb.cgi/?p=tryton/tryton-server.git;a=commitdiff;h=upstream/3.0.9-1-g75faefe

commit 75faefe2e9748a9dc584cdd9daa1040c644b9ed3
Author: Mathias Behrle <mathiasb at m9s.biz>
Date:   Tue Mar 31 14:28:20 2015 +0200

    Adding upstream version 3.0.10.
    
    Signed-off-by: Mathias Behrle <mathiasb at m9s.biz>

diff --git a/CHANGELOG b/CHANGELOG
index 30bc4dc..afcd9eb 100644
--- a/CHANGELOG
+++ b/CHANGELOG
@@ -1,3 +1,6 @@
+Version 3.0.10 - 2015-03-30
+* Bug fixes (see mercurial logs for details)
+
 Version 3.0.9 - 2015-02-16
 * Bug fixes (see mercurial logs for details)
 
diff --git a/PKG-INFO b/PKG-INFO
index a19c613..3d24350 100644
--- a/PKG-INFO
+++ b/PKG-INFO
@@ -1,6 +1,6 @@
 Metadata-Version: 1.1
 Name: trytond
-Version: 3.0.9
+Version: 3.0.10
 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 a19c613..3d24350 100644
--- a/trytond.egg-info/PKG-INFO
+++ b/trytond.egg-info/PKG-INFO
@@ -1,6 +1,6 @@
 Metadata-Version: 1.1
 Name: trytond
-Version: 3.0.9
+Version: 3.0.10
 Summary: Tryton server
 Home-page: http://www.tryton.org/
 Author: Tryton
diff --git a/trytond/model/fields/reference.py b/trytond/model/fields/reference.py
index 62c4bad..369650c 100644
--- a/trytond/model/fields/reference.py
+++ b/trytond/model/fields/reference.py
@@ -2,6 +2,8 @@
 #this repository contains the full copyright notices and license terms.
 import contextlib
 from types import NoneType
+import warnings
+
 from sql import Cast, Literal, Column, Query, Expression
 from sql.functions import Substring, Position
 
@@ -32,8 +34,12 @@ class Reference(Field):
             select=select, on_change=on_change, on_change_with=on_change_with,
             depends=depends, context=context, loading=loading)
         self.selection = selection or None
-        self.selection_change_with = selection_change_with
-
+        self.selection_change_with = set()
+        if selection_change_with:
+            warnings.warn('selection_change_with argument is deprecated, '
+                'use the depends decorator',
+                DeprecationWarning, stacklevel=2)
+            self.selection_change_with |= set(selection_change_with)
     __init__.__doc__ += Field.__init__.__doc__
 
     def get(self, ids, model, name, values=None):
diff --git a/trytond/res/group.py b/trytond/res/group.py
index 2d4ce47..189d760 100644
--- a/trytond/res/group.py
+++ b/trytond/res/group.py
@@ -25,10 +25,8 @@ class MenuMany2Many(fields.Many2Many):
                             ('id', 'in', sub_ids),
                             ])))
         menu_ids = set(chain(*test_ids))
-        for ids in res.itervalues():
-            for id_ in ids[:]:
-                if id_ not in menu_ids:
-                    ids.remove(id_)
+        for group_id, ids in res.iteritems():
+            res[group_id] = tuple(id_ for id_ in ids if id_ in menu_ids)
         return res
 
 
diff --git a/trytond/version.py b/trytond/version.py
index edd9337..f15b8b3 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 = "3.0.9"
+VERSION = "3.0.10"
 LICENSE = "GPL-3"
 WEBSITE = "http://www.tryton.org/"
-- 
tryton-server



More information about the tryton-debian-vcs mailing list