[tryton-debian-vcs] tryton-client branch debian updated. debian/3.4.2-1-4-gc1b5c37
Mathias Behrle
tryton-debian-vcs at alioth.debian.org
Tue Mar 31 12:41:30 UTC 2015
The following commit has been merged in the debian branch:
https://alioth.debian.org/plugins/scmgit/cgi-bin/gitweb.cgi/?p=tryton/tryton-client.git;a=commitdiff;h=debian/3.4.2-1-4-gc1b5c37
commit c1b5c37d3bc3b8768fc0e94133634181068993f4
Author: Mathias Behrle <mathiasb at m9s.biz>
Date: Tue Mar 31 14:13:54 2015 +0200
Releasing debian version 3.4.3-1.
Signed-off-by: Mathias Behrle <mathiasb at m9s.biz>
diff --git a/debian/changelog b/debian/changelog
index cf3fd3e..42a4a94 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,3 +1,12 @@
+tryton-client (3.4.3-1) unstable; urgency=medium
+
+ * Improving boilerplate in d/control (Closes: #771722).
+ * Removing TODO from docs prospectively, they are about to be removed
+ upstream.
+ * Merging upstream version 3.4.3.
+
+ -- Mathias Behrle <mathiasb at m9s.biz> Tue, 31 Mar 2015 14:13:54 +0200
+
tryton-client (3.4.2-1) unstable; urgency=medium
* Adding actual upstream signing key.
commit 0c3c69fa52eacb386431459d8478271bf345fe63
Author: Mathias Behrle <mathiasb at m9s.biz>
Date: Tue Mar 31 14:13:53 2015 +0200
Merging upstream version 3.4.3.
diff --git a/CHANGELOG b/CHANGELOG
index de0e445..ac8adbb 100644
--- a/CHANGELOG
+++ b/CHANGELOG
@@ -1,3 +1,6 @@
+Version 3.4.3 - 2015-03-30
+* Bug fixes (see mercurial logs for details)
+
Version 3.4.2 - 2015-02-16
* Bug fixes (see mercurial logs for details)
diff --git a/PKG-INFO b/PKG-INFO
index 64679f2..23f70d1 100644
--- a/PKG-INFO
+++ b/PKG-INFO
@@ -1,6 +1,6 @@
Metadata-Version: 1.1
Name: tryton
-Version: 3.4.2
+Version: 3.4.3
Summary: Tryton client
Home-page: http://www.tryton.org/
Author: Tryton
diff --git a/tryton.egg-info/PKG-INFO b/tryton.egg-info/PKG-INFO
index 64679f2..23f70d1 100644
--- a/tryton.egg-info/PKG-INFO
+++ b/tryton.egg-info/PKG-INFO
@@ -1,6 +1,6 @@
Metadata-Version: 1.1
Name: tryton
-Version: 3.4.2
+Version: 3.4.3
Summary: Tryton client
Home-page: http://www.tryton.org/
Author: Tryton
diff --git a/tryton/action/main.py b/tryton/action/main.py
index 00ae9d9..71431b9 100644
--- a/tryton/action/main.py
+++ b/tryton/action/main.py
@@ -103,7 +103,7 @@ class Action(object):
action.setdefault('pyson_domain', '[]')
ctx = {
- 'active_model': data.get('res_model'),
+ 'active_model': data.get('model'),
'active_id': data.get('id'),
'active_ids': data.get('ids', []),
}
diff --git a/tryton/common/domain_inversion.py b/tryton/common/domain_inversion.py
index e2b8a12..892c01a 100644
--- a/tryton/common/domain_inversion.py
+++ b/tryton/common/domain_inversion.py
@@ -143,7 +143,7 @@ def localize_domain(domain, field_name=None):
if isinstance(domain[2], basestring):
locale_name = 'rec_name'
return [locale_part(domain[0], field_name, locale_name)] \
- + list(domain[1:])
+ + list(domain[1:3]) + list(domain[4:])
else:
return [localize_domain(part, field_name) for part in domain]
@@ -573,6 +573,12 @@ def test_localize():
domain = [['x', 'child_of', [1], 'y']]
assert localize_domain(domain, 'x') == [['y', 'child_of', [1]]]
+ domain = [['x.id', '=', 1, 'y']]
+ assert localize_domain(domain, 'x') == [['id', '=', 1]]
+
+ domain = [['a.b.c', '=', 1, 'y', 'z']]
+ assert localize_domain(domain, 'x') == [['b.c', '=', 1, 'z']]
+
if __name__ == '__main__':
test_simple_inversion()
test_and_inversion()
diff --git a/tryton/common/domain_parser.py b/tryton/common/domain_parser.py
index fad8c7a..77e324b 100644
--- a/tryton/common/domain_parser.py
+++ b/tryton/common/domain_parser.py
@@ -117,6 +117,8 @@ def quote(value):
"Quote string if needed"
if not isinstance(value, basestring):
return value
+ if '\\' in value:
+ value = value.replace('\\', '\\\\')
if '"' in value:
value = value.replace('"', '\\"')
for test in (':', ' ', '(', ')') + OPERATORS:
@@ -129,6 +131,7 @@ def test_quote():
assert quote('test') == 'test'
assert quote('foo bar') == '"foo bar"'
assert quote('"foo"') == '\\\"foo\\\"'
+ assert quote('foo\\bar') == 'foo\\\\bar'
def ending_clause(domain, deep=0):
diff --git a/tryton/gui/window/view_form/model/field.py b/tryton/gui/window/view_form/model/field.py
index 0eae7d1..136b48d 100644
--- a/tryton/gui/window/view_form/model/field.py
+++ b/tryton/gui/window/view_form/model/field.py
@@ -829,6 +829,10 @@ class ReferenceField(Field):
skip={record.group.child_name})
return super(ReferenceField, self).get_on_change_value(record)
+ def validation_domains(self, record, pre_validate=None):
+ screen_domain, attr_domain = self.domains_get(record, pre_validate)
+ return screen_domain
+
class BinaryField(Field):
diff --git a/tryton/gui/window/view_form/view/form.py b/tryton/gui/window/view_form/view/form.py
index a342c5c..0edf6c0 100644
--- a/tryton/gui/window/view_form/view/form.py
+++ b/tryton/gui/window/view_form/view/form.py
@@ -484,7 +484,7 @@ class ViewForm(View):
for notebook in self.notebooks:
notebook.set_current_page(0)
if self.attributes.get('cursor') in self.widgets:
- focus_widget = find_focused_child(self.widgets[
+ focus_widget = find_focusable_child(self.widgets[
self.attributes['cursor']][0].widget)
else:
child = find_focusable_child(self._viewport)
diff --git a/tryton/version.py b/tryton/version.py
index dcd5113..51d3886 100644
--- a/tryton/version.py
+++ b/tryton/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 = "tryton"
-VERSION = "3.4.2"
+VERSION = "3.4.3"
LICENSE = "GPL-3"
WEBSITE = "http://www.tryton.org/"
--
tryton-client
More information about the tryton-debian-vcs
mailing list