[tryton-debian-vcs] tryton-client branch debian-jessie-3.4 updated. debian/3.4.8-1-3-gf86b89d
Mathias Behrle
tryton-debian-vcs at alioth.debian.org
Tue Mar 15 20:34:51 UTC 2016
The following commit has been merged in the debian-jessie-3.4 branch:
https://alioth.debian.org/plugins/scmgit/cgi-bin/gitweb.cgi/?p=tryton/tryton-client.git;a=commitdiff;h=debian/3.4.8-1-3-gf86b89d
commit f86b89dbf763831db8cf710fdb5fdc4851449eac
Author: Mathias Behrle <mathiasb at m9s.biz>
Date: Tue Mar 15 20:32:09 2016 +0100
Releasing debian version 3.4.9-1.
Signed-off-by: Mathias Behrle <mathiasb at m9s.biz>
diff --git a/debian/changelog b/debian/changelog
index f367b21..e801bae 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,3 +1,10 @@
+tryton-client (3.4.9-1) unstable; urgency=medium
+
+ * Updating signing-key.asc with the actual upstream maintainer keys.
+ * Merging upstream version 3.4.9.
+
+ -- Mathias Behrle <mathiasb at m9s.biz> Tue, 15 Mar 2016 20:32:09 +0100
+
tryton-client (3.4.8-1) unstable; urgency=medium
* Merging upstream version 3.4.8.
commit f1db7f7d7cd4ae16c2c693946139589194f9875d
Author: Mathias Behrle <mathiasb at m9s.biz>
Date: Tue Mar 15 20:32:08 2016 +0100
Merging upstream version 3.4.9.
diff --git a/CHANGELOG b/CHANGELOG
index 88020f3..69973d1 100644
--- a/CHANGELOG
+++ b/CHANGELOG
@@ -1,3 +1,6 @@
+Version 3.4.9 - 2016-03-14
+* Bug fixes (see mercurial logs for details)
+
Version 3.4.8 - 2016-02-06
* Bug fixes (see mercurial logs for details)
diff --git a/PKG-INFO b/PKG-INFO
index cdeb3cf..536f8bc 100644
--- a/PKG-INFO
+++ b/PKG-INFO
@@ -1,6 +1,6 @@
Metadata-Version: 1.1
Name: tryton
-Version: 3.4.8
+Version: 3.4.9
Summary: Tryton client
Home-page: http://www.tryton.org/
Author: Tryton
diff --git a/setup.nsi b/setup.nsi
index 6bfd7f7..7efdcd4 100644
--- a/setup.nsi
+++ b/setup.nsi
@@ -55,10 +55,10 @@ Var STARTMENU_FOLDER
;Languages
+!insertmacro MUI_LANGUAGE "English" ; First is the default
+!include "english.nsh"
!insertmacro MUI_LANGUAGE "Catalan"
!include "catalan.nsh"
-!insertmacro MUI_LANGUAGE "English"
-!include "english.nsh"
!insertmacro MUI_LANGUAGE "French"
!include "french.nsh"
!insertmacro MUI_LANGUAGE "German"
diff --git a/tryton.egg-info/PKG-INFO b/tryton.egg-info/PKG-INFO
index cdeb3cf..536f8bc 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.8
+Version: 3.4.9
Summary: Tryton client
Home-page: http://www.tryton.org/
Author: Tryton
diff --git a/tryton/common/domain_parser.py b/tryton/common/domain_parser.py
index 77e324b..7049a32 100644
--- a/tryton/common/domain_parser.py
+++ b/tryton/common/domain_parser.py
@@ -887,10 +887,14 @@ class DomainParser(object):
operator = '!'
value = value.replace('%%', '%')
def_operator = default_operator(field)
- if (def_operator == operator.strip()
- or (def_operator in operator
- and ('not' in operator
- or '!' in operator))):
+ if def_operator == operator.strip():
+ operator = ''
+ if value in OPERATORS:
+ # As the value could be interpreted as an operator,
+ # the default operator must be forced
+ operator = '"" '
+ elif (def_operator in operator
+ and ('not' in operator or '!' in operator)):
operator = operator.rstrip(def_operator
).replace('not', '!').strip()
if operator.endswith('in'):
@@ -986,7 +990,7 @@ class DomainParser(object):
field = self.fields[name]
else:
field = self.strings[name.lower()]
- if operator is None:
+ if not operator:
operator = default_operator(field)
value = ''
if 'ilike' in operator:
@@ -1015,7 +1019,9 @@ class DomainParser(object):
else:
yield (None,)
name = (name,)
- if i + 1 < len(parts) and parts[i + 1] in OPERATORS:
+ # empty string is also the default operator
+ if (i + 1 < len(parts)
+ and parts[i + 1] in OPERATORS + ('',)):
name += (parts[i + 1],)
i += 1
else:
@@ -1080,7 +1086,7 @@ class DomainParser(object):
if target:
field_name += '.rec_name'
- if operator is None:
+ if not operator:
operator = default_operator(field)
if isinstance(value, list):
if operator == '!':
@@ -1174,6 +1180,7 @@ def test_string():
assert dom.string([('name', '=', '')]) == 'Name: =""'
assert dom.string([('name', 'ilike', '%')]) == 'Name: '
assert dom.string([('name', 'ilike', '%Doe%')]) == 'Name: Doe'
+ assert dom.string([('name', 'ilike', '%<%')]) == 'Name: "" "<"'
assert dom.string([('name', 'ilike', 'Doe')]) == 'Name: =Doe'
assert dom.string([('name', 'ilike', 'Doe%')]) == 'Name: Doe%'
assert dom.string([('name', 'ilike', 'Doe%%')]) == 'Name: =Doe%'
@@ -1302,6 +1309,9 @@ def test_group():
assert rlist(dom.group(udlex(u'Name: \\"foo\\"'))) == [
('Name', None, '"foo"'),
]
+ assert rlist(dom.group(udlex(u'Name: "" <'))) == [
+ ('Name', '', '<'),
+ ]
def test_parse_clause():
@@ -1344,6 +1354,8 @@ def test_parse_clause():
('rec_name', 'ilike', '%John%')]
assert rlist(dom.parse_clause([('Name', None, None)])) == [
('name', 'ilike', '%')]
+ assert rlist(dom.parse_clause([('Name', '', None)])) == [
+ ('name', 'ilike', '%')]
assert rlist(dom.parse_clause([('Name', '=', None)])) == [
('name', '=', None)]
assert rlist(dom.parse_clause([('Name', '=', '')])) == [
diff --git a/tryton/gui/window/view_form/model/group.py b/tryton/gui/window/view_form/model/group.py
index be82c80..fd08cf6 100644
--- a/tryton/gui/window/view_form/model/group.py
+++ b/tryton/gui/window/view_form/model/group.py
@@ -282,14 +282,14 @@ class Group(SignalEvent, list):
record.signal('record-modified')
if signal:
self.signal('group-changed', record)
- # Set parent field to trigger on_change
- if self.parent and self.parent_name in self.fields:
- field = self.fields[self.parent_name]
- if isinstance(field, (M2OField, ReferenceField)):
- value = self.parent.id, ''
- if isinstance(field, ReferenceField):
- value = self.parent.model_name, value
- field.set_client(record, value)
+ # Set parent field to trigger on_change
+ if self.parent and self.parent_name in self.fields:
+ field = self.fields[self.parent_name]
+ if isinstance(field, (M2OField, ReferenceField)):
+ value = self.parent.id, ''
+ if isinstance(field, ReferenceField):
+ value = self.parent.model_name, value
+ field.set_client(record, value)
return record
def set_sequence(self, field='sequence'):
diff --git a/tryton/gui/window/view_form/view/list_gtk/widget.py b/tryton/gui/window/view_form/view/list_gtk/widget.py
index ef4a949..c62da35 100644
--- a/tryton/gui/window/view_form/view/list_gtk/widget.py
+++ b/tryton/gui/window/view_form/view/list_gtk/widget.py
@@ -252,6 +252,9 @@ class Char(object):
pass
else:
cell.set_property('editable', not readonly)
+ else:
+ if isinstance(cell, CellRendererToggle):
+ cell.set_property('activatable', False)
cell.set_property('xalign', align)
diff --git a/tryton/version.py b/tryton/version.py
index 6544eee..ce1dd81 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.8"
+VERSION = "3.4.9"
LICENSE = "GPL-3"
WEBSITE = "http://www.tryton.org/"
--
tryton-client
More information about the tryton-debian-vcs
mailing list