[tryton-debian-vcs] tryton-proteus branch debian updated. debian/3.2.0-1-3-ga360404

Mathias Behrle tryton-debian-vcs at alioth.debian.org
Thu Jul 3 16:03:44 UTC 2014


The following commit has been merged in the debian branch:
https://alioth.debian.org/plugins/scmgit/cgi-bin/gitweb.cgi/?p=tryton/tryton-proteus.git;a=commitdiff;h=debian/3.2.0-1-3-ga360404

commit a3604045cf6cccadedb836f3c8404204d55d0675
Author: Mathias Behrle <mathiasb at m9s.biz>
Date:   Wed Jul 2 14:20:34 2014 +0200

    Releasing debian version 3.2.1-1.

diff --git a/debian/changelog b/debian/changelog
index 37488a3..69a803c 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,3 +1,11 @@
+tryton-proteus (3.2.1-1) unstable; urgency=medium
+
+  * Updating signing key while using now plain .asc files instead of .pgp
+    binaries.
+  * Merging upstream version 3.2.1.
+
+ -- Mathias Behrle <mathiasb at m9s.biz>  Wed, 02 Jul 2014 14:20:33 +0200
+
 tryton-proteus (3.2.0-1) unstable; urgency=medium
 
   * Removing  LC_ALL=C.UTF-8 as build environment.
commit 870909c7caf12788db9b93d1acd7e6859b3a55d8
Author: Mathias Behrle <mathiasb at m9s.biz>
Date:   Wed Jul 2 14:20:31 2014 +0200

    Merging upstream version 3.2.1.

diff --git a/CHANGELOG b/CHANGELOG
index 29ee561..599fe1b 100644
--- a/CHANGELOG
+++ b/CHANGELOG
@@ -1,3 +1,6 @@
+Version 3.2.1 - 2014-07-02
+* Bug fixes (see mercurial logs for details)
+
 Version 3.2.0 - 2014-04-21
 * Bug fixes (see mercurial logs for details)
 * Models cache depends also on user
diff --git a/PKG-INFO b/PKG-INFO
index 5bf2415..d00840d 100644
--- a/PKG-INFO
+++ b/PKG-INFO
@@ -1,6 +1,6 @@
 Metadata-Version: 1.1
 Name: proteus
-Version: 3.2.0
+Version: 3.2.1
 Summary: Library to access Tryton server as a client
 Home-page: http://www.tryton.org/
 Author: Tryton
diff --git a/proteus.egg-info/PKG-INFO b/proteus.egg-info/PKG-INFO
index 5bf2415..d00840d 100644
--- a/proteus.egg-info/PKG-INFO
+++ b/proteus.egg-info/PKG-INFO
@@ -1,6 +1,6 @@
 Metadata-Version: 1.1
 Name: proteus
-Version: 3.2.0
+Version: 3.2.1
 Summary: Library to access Tryton server as a client
 Home-page: http://www.tryton.org/
 Author: Tryton
diff --git a/proteus/__init__.py b/proteus/__init__.py
index 78fd625..6c8d8ab 100644
--- a/proteus/__init__.py
+++ b/proteus/__init__.py
@@ -3,7 +3,7 @@
 '''
 A library to access Tryton's models like a client.
 '''
-__version__ = "3.2.0"
+__version__ = "3.2.1"
 __all__ = ['Model', 'Wizard']
 import sys
 try:
@@ -31,7 +31,7 @@ class _EvalEnvironment(dict):
         self.parent = parent
 
     def __getitem__(self, item):
-        if item == '_parent_' + self.parent._parent_field_name \
+        if item == '_parent_' + self.parent._parent_name \
                 and self.parent.parent:
             return _EvalEnvironment(self.parent.parent)
         return self.parent._get_eval()[item]
@@ -278,17 +278,21 @@ class One2ManyValueDescriptor(ValueDescriptor):
     def __get__(self, instance, owner):
         value = []
         value_list = getattr(instance, self.name)
+        parent_name = self.definition.get('relation_field', '')
         to_add = []
         to_create = []
         to_write = []
         for record in value_list:
             if record.id >= 0:
-                if record._changed:
-                    to_write.extend(([record.id],
-                            record._get_values(fields=record._changed)))
+                values = record._get_values(fields=record._changed)
+                values.pop(parent_name, None)
+                if record._changed and values:
+                    to_write.extend(([record.id], values))
                 to_add.append(record.id)
             else:
-                to_create.append(record._get_values())
+                values = record._get_values()
+                values.pop(parent_name, None)
+                to_create.append(values)
         if to_add:
             value.append(('add', to_add))
         if to_create:
@@ -514,8 +518,8 @@ class ModelList(list):
     def pop(self, index=-1):
         self.record_removed.add(self[index])
         self[index]._parent = None
-        self[index]._parent_field_name = None
-        self[index]._parent_name = None
+        self[index]._parent_field_name = ''
+        self[index]._parent_name = ''
         res = super(ModelList, self).pop(index)
         self._changed()
         return res
@@ -524,8 +528,8 @@ class ModelList(list):
     def remove(self, record):
         self.record_deleted.add(record)
         record._parent = None
-        record._parent_field_name = None
-        record._parent_name = None
+        record._parent_field_name = ''
+        record._parent_name = ''
         res = super(ModelList, self).remove(record)
         self._changed()
         return res
-- 
tryton-proteus



More information about the tryton-debian-vcs mailing list