[tryton-debian-vcs] tryton-proteus branch debian-wheezy-2.6 updated. debian/2.6.2-1-3-g8ad01da
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-wheezy-2.6 branch:
https://alioth.debian.org/plugins/scmgit/cgi-bin/gitweb.cgi/?p=tryton/tryton-proteus.git;a=commitdiff;h=debian/2.6.2-1-3-g8ad01da
commit 8ad01da23dc2e70d788e8f6290577885b0c7149c
Author: Mathias Behrle <mathiasb at m9s.biz>
Date: Wed Jul 2 14:23:41 2014 +0200
Releasing debian version 2.6.3-1.
diff --git a/debian/changelog b/debian/changelog
index df7a5fc..993201a 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,3 +1,10 @@
+tryton-proteus (2.6.3-1) unstable; urgency=medium
+
+ * Merging upstream version 2.6.3.
+ * Updating copyright file.
+
+ -- Mathias Behrle <mathiasb at m9s.biz> Wed, 02 Jul 2014 14:23:41 +0200
+
tryton-proteus (2.6.2-1) experimental; urgency=low
* Removing Daniel from Uploaders. Thanks for your work! (Closes: #704409).
commit 26a2c81bd2429945edd7214060971dc144860e2b
Author: Mathias Behrle <mathiasb at m9s.biz>
Date: Wed Jul 2 14:23:39 2014 +0200
Updating copyright file.
diff --git a/debian/copyright b/debian/copyright
index 1d0f2ad..1a10989 100644
--- a/debian/copyright
+++ b/debian/copyright
@@ -1,8 +1,8 @@
Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
Files: *
-Copyright: 2010-2013 Cédric Krier
- 2010-2013 B2CK SPRL
+Copyright: 2010-2014 Cédric Krier
+ 2010-2014 B2CK SPRL
License: LGPL-3+
Files: debian/*
commit a0ec45a9b629cae4f32f3c6ff3e9bc3a597b2eaa
Author: Mathias Behrle <mathiasb at m9s.biz>
Date: Wed Jul 2 14:23:39 2014 +0200
Merging upstream version 2.6.3.
diff --git a/CHANGELOG b/CHANGELOG
index baf80b3..68e28d2 100644
--- a/CHANGELOG
+++ b/CHANGELOG
@@ -1,3 +1,6 @@
+Version 2.6.3 - 2014-07-02
+* Bug fixes (see mercurial logs for details)
+
Version 2.6.2 - 2013-05-02
* Bug fixes (see mercurial logs for details)
diff --git a/COPYRIGHT b/COPYRIGHT
index 7e8c156..c655746 100644
--- a/COPYRIGHT
+++ b/COPYRIGHT
@@ -1,5 +1,5 @@
-Copyright (C) 2010-2013 Cédric Krier.
-Copyright (C) 2010-2013 B2CK SPRL.
+Copyright (C) 2010-2014 Cédric Krier.
+Copyright (C) 2010-2014 B2CK SPRL.
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
diff --git a/PKG-INFO b/PKG-INFO
index 0fe3cf7..8278fb5 100644
--- a/PKG-INFO
+++ b/PKG-INFO
@@ -1,6 +1,6 @@
Metadata-Version: 1.1
Name: proteus
-Version: 2.6.2
+Version: 2.6.3
Summary: Library to access Tryton server as a client
Home-page: http://www.tryton.org/
Author: B2CK
diff --git a/proteus.egg-info/PKG-INFO b/proteus.egg-info/PKG-INFO
index 0fe3cf7..8278fb5 100644
--- a/proteus.egg-info/PKG-INFO
+++ b/proteus.egg-info/PKG-INFO
@@ -1,6 +1,6 @@
Metadata-Version: 1.1
Name: proteus
-Version: 2.6.2
+Version: 2.6.3
Summary: Library to access Tryton server as a client
Home-page: http://www.tryton.org/
Author: B2CK
diff --git a/proteus/__init__.py b/proteus/__init__.py
index beac2fc..36f2fa9 100644
--- a/proteus/__init__.py
+++ b/proteus/__init__.py
@@ -3,7 +3,7 @@
'''
A library to access Tryton's models like a client.
'''
-__version__ = "2.6.2"
+__version__ = "2.6.3"
__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]
@@ -268,14 +268,18 @@ class One2ManyValueDescriptor(ValueDescriptor):
def __get__(self, instance, owner):
value = [('add', [])]
value_list = getattr(instance, self.name)
+ parent_name = self.definition.get('relation_field', '')
for record in value_list:
- if record.id > 0:
- if record._changed:
- value.append(('write', [record.id], record._get_values(
- fields=record._changed)))
+ if record.id >= 0:
+ values = record._get_values(fields=record._changed)
+ values.pop(parent_name, None)
+ if record._changed and values:
+ value.append(('write', [record.id], values))
value[0][1].append(record.id)
else:
- value.append(('create', record._get_values()))
+ values = record._get_values()
+ values.pop(parent_name, None)
+ value.append(('create', values))
if value_list.record_removed:
value.append(('unlink', [x.id for x in value_list.record_removed]))
if value_list.record_deleted:
@@ -494,8 +498,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
@@ -504,8 +508,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