[tryton-debian-vcs] tryton-client branch upstream-4.2 updated. upstream/4.2.6-1-gd063888

Mathias Behrle tryton-debian-vcs at alioth.debian.org
Thu Oct 5 12:21:54 UTC 2017


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

commit d063888f1e141b386dfd895f9e766a2081f11023
Author: Mathias Behrle <mathiasb at m9s.biz>
Date:   Thu Oct 5 11:56:55 2017 +0200

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

diff --git a/CHANGELOG b/CHANGELOG
index a4ecf41..127290b 100644
--- a/CHANGELOG
+++ b/CHANGELOG
@@ -1,3 +1,6 @@
+Version 4.2.7 - 2017-10-03
+* Bug fixes (see mercurial logs for details)
+
 Version 4.2.6 - 2017-08-08
 * Bug fixes (see mercurial logs for details)
 
diff --git a/PKG-INFO b/PKG-INFO
index 2c813f5..808c89f 100644
--- a/PKG-INFO
+++ b/PKG-INFO
@@ -1,6 +1,6 @@
 Metadata-Version: 1.1
 Name: tryton
-Version: 4.2.6
+Version: 4.2.7
 Summary: Tryton client
 Home-page: http://www.tryton.org/
 Author: Tryton
diff --git a/bin/tryton b/bin/tryton
index 576f8d7..02f319d 100755
--- a/bin/tryton
+++ b/bin/tryton
@@ -23,6 +23,10 @@ if hasattr(sys, 'frozen'):
             etc, 'gtk-2.0', 'gdk-pixbuf.loaders')
     os.environ['GTK_IM_MODULE_FILE'] = os.path.join(
             etc, 'gtk-2.0', 'gtk.immodules')
+    os.environ.setdefault('SSL_CERT_FILE',
+        os.path.join(etc, 'ssl', 'cert.pem'))
+    os.environ.setdefault('SSL_CERT_DIR',
+        os.path.join(etc, 'ssl', 'certs'))
 
 
 # Disable dbusmenu to show second menu in tabs
diff --git a/setup-freeze.py b/setup-freeze.py
index 0ef6f3a..efcbc73 100644
--- a/setup-freeze.py
+++ b/setup-freeze.py
@@ -20,6 +20,7 @@ if sys.platform == 'win32':
     include_files.extend([
         (os.path.join(sys.prefix, 'share/themes/MS-Windows'),
             'share/themes/MS-Windows'),
+        (os.path.join(sys.prefix, 'ssl'), 'etc/ssl'),
         ])
     dll_paths = os.getenv('PATH', os.defpath).split(os.pathsep)
     required_dlls = [
diff --git a/tryton.egg-info/PKG-INFO b/tryton.egg-info/PKG-INFO
index 2c813f5..808c89f 100644
--- a/tryton.egg-info/PKG-INFO
+++ b/tryton.egg-info/PKG-INFO
@@ -1,6 +1,6 @@
 Metadata-Version: 1.1
 Name: tryton
-Version: 4.2.6
+Version: 4.2.7
 Summary: Tryton client
 Home-page: http://www.tryton.org/
 Author: Tryton
diff --git a/tryton/__init__.py b/tryton/__init__.py
index 8f53798..a926648 100644
--- a/tryton/__init__.py
+++ b/tryton/__init__.py
@@ -1,3 +1,3 @@
 # This file is part of Tryton.  The COPYRIGHT file at the top level of
 # this repository contains the full copyright notices and license terms.
-__version__ = "4.2.6"
+__version__ = "4.2.7"
diff --git a/tryton/common/common.py b/tryton/common/common.py
index 78256eb..08197be 100644
--- a/tryton/common/common.py
+++ b/tryton/common/common.py
@@ -12,6 +12,7 @@ import re
 import logging
 import unicodedata
 import colorsys
+from decimal import Decimal
 from functools import partial
 from tryton.config import CONFIG
 from tryton.config import TRYTON_ICON, PIXMAPS_DIR
@@ -175,6 +176,14 @@ MODELHISTORY = ModelHistory()
 class ViewSearch(object):
     searches = {}
 
+    def __init__(self):
+        class Encoder(PYSONEncoder):
+            def default(self, obj):
+                if isinstance(obj, Decimal):
+                    return float(obj)
+                return super(Encoder, self).default(obj)
+        self.encoder = Encoder()
+
     def load_searches(self):
         try:
             self.searches = rpc.execute('model', 'ir.ui.view_search',
@@ -191,7 +200,7 @@ class ViewSearch(object):
                 'create', [{
                         'model': model,
                         'name': name,
-                        'domain': PYSONEncoder().encode(domain),
+                        'domain': self.encoder.encode(domain),
                         }])
         except RPCException:
             return
diff --git a/tryton/common/htmltextbuffer.py b/tryton/common/htmltextbuffer.py
index 3b49593..cb7f5b7 100644
--- a/tryton/common/htmltextbuffer.py
+++ b/tryton/common/htmltextbuffer.py
@@ -416,7 +416,8 @@ if __name__ == '__main__':
     win.add(vbox)
 
     text_buffer = gtk.TextBuffer()
-    text_view = gtk.TextView(text_buffer)
+    text_view = gtk.TextView()
+    text_view.set_buffer(text_buffer)
     vbox.pack_start(text_view)
 
     setup_tags(text_buffer)
diff --git a/tryton/data/locale/bg/LC_MESSAGES/tryton.mo b/tryton/data/locale/bg/LC_MESSAGES/tryton.mo
index 096543c..e386aa3 100644
Binary files a/tryton/data/locale/bg/LC_MESSAGES/tryton.mo and b/tryton/data/locale/bg/LC_MESSAGES/tryton.mo differ
diff --git a/tryton/data/locale/ca/LC_MESSAGES/tryton.mo b/tryton/data/locale/ca/LC_MESSAGES/tryton.mo
index 91f85cd..d03cfcd 100644
Binary files a/tryton/data/locale/ca/LC_MESSAGES/tryton.mo and b/tryton/data/locale/ca/LC_MESSAGES/tryton.mo differ
diff --git a/tryton/data/locale/cs/LC_MESSAGES/tryton.mo b/tryton/data/locale/cs/LC_MESSAGES/tryton.mo
index 928f453..a526dad 100644
Binary files a/tryton/data/locale/cs/LC_MESSAGES/tryton.mo and b/tryton/data/locale/cs/LC_MESSAGES/tryton.mo differ
diff --git a/tryton/data/locale/de/LC_MESSAGES/tryton.mo b/tryton/data/locale/de/LC_MESSAGES/tryton.mo
index 1006618..2bb9739 100644
Binary files a/tryton/data/locale/de/LC_MESSAGES/tryton.mo and b/tryton/data/locale/de/LC_MESSAGES/tryton.mo differ
diff --git a/tryton/data/locale/es/LC_MESSAGES/tryton.mo b/tryton/data/locale/es/LC_MESSAGES/tryton.mo
index c2fc36b..6bf0139 100644
Binary files a/tryton/data/locale/es/LC_MESSAGES/tryton.mo and b/tryton/data/locale/es/LC_MESSAGES/tryton.mo differ
diff --git a/tryton/data/locale/es_419/LC_MESSAGES/tryton.mo b/tryton/data/locale/es_419/LC_MESSAGES/tryton.mo
index aab03bf..52d02bd 100644
Binary files a/tryton/data/locale/es_419/LC_MESSAGES/tryton.mo and b/tryton/data/locale/es_419/LC_MESSAGES/tryton.mo differ
diff --git a/tryton/data/locale/fr/LC_MESSAGES/tryton.mo b/tryton/data/locale/fr/LC_MESSAGES/tryton.mo
index dfc7d31..213b5e3 100644
Binary files a/tryton/data/locale/fr/LC_MESSAGES/tryton.mo and b/tryton/data/locale/fr/LC_MESSAGES/tryton.mo differ
diff --git a/tryton/data/locale/hu_HU/LC_MESSAGES/tryton.mo b/tryton/data/locale/hu_HU/LC_MESSAGES/tryton.mo
index 98c82ee..b5e4d68 100644
Binary files a/tryton/data/locale/hu_HU/LC_MESSAGES/tryton.mo and b/tryton/data/locale/hu_HU/LC_MESSAGES/tryton.mo differ
diff --git a/tryton/data/locale/it_IT/LC_MESSAGES/tryton.mo b/tryton/data/locale/it_IT/LC_MESSAGES/tryton.mo
index d2ed089..45717f8 100644
Binary files a/tryton/data/locale/it_IT/LC_MESSAGES/tryton.mo and b/tryton/data/locale/it_IT/LC_MESSAGES/tryton.mo differ
diff --git a/tryton/data/locale/ja_JP/LC_MESSAGES/tryton.mo b/tryton/data/locale/ja_JP/LC_MESSAGES/tryton.mo
index 49ab524..6053f8c 100644
Binary files a/tryton/data/locale/ja_JP/LC_MESSAGES/tryton.mo and b/tryton/data/locale/ja_JP/LC_MESSAGES/tryton.mo differ
diff --git a/tryton/data/locale/lo/LC_MESSAGES/tryton.mo b/tryton/data/locale/lo/LC_MESSAGES/tryton.mo
index acd3ea9..a89a39e 100644
Binary files a/tryton/data/locale/lo/LC_MESSAGES/tryton.mo and b/tryton/data/locale/lo/LC_MESSAGES/tryton.mo differ
diff --git a/tryton/data/locale/lt/LC_MESSAGES/tryton.mo b/tryton/data/locale/lt/LC_MESSAGES/tryton.mo
index e8473a3..c54091c 100644
Binary files a/tryton/data/locale/lt/LC_MESSAGES/tryton.mo and b/tryton/data/locale/lt/LC_MESSAGES/tryton.mo differ
diff --git a/tryton/data/locale/nl/LC_MESSAGES/tryton.mo b/tryton/data/locale/nl/LC_MESSAGES/tryton.mo
index 019eaa4..b5b4c58 100644
Binary files a/tryton/data/locale/nl/LC_MESSAGES/tryton.mo and b/tryton/data/locale/nl/LC_MESSAGES/tryton.mo differ
diff --git a/tryton/data/locale/pl/LC_MESSAGES/tryton.mo b/tryton/data/locale/pl/LC_MESSAGES/tryton.mo
index 5c18ea3..60e8230 100644
Binary files a/tryton/data/locale/pl/LC_MESSAGES/tryton.mo and b/tryton/data/locale/pl/LC_MESSAGES/tryton.mo differ
diff --git a/tryton/data/locale/pt_BR/LC_MESSAGES/tryton.mo b/tryton/data/locale/pt_BR/LC_MESSAGES/tryton.mo
index 9ca7674..7d6cf60 100644
Binary files a/tryton/data/locale/pt_BR/LC_MESSAGES/tryton.mo and b/tryton/data/locale/pt_BR/LC_MESSAGES/tryton.mo differ
diff --git a/tryton/data/locale/ru/LC_MESSAGES/tryton.mo b/tryton/data/locale/ru/LC_MESSAGES/tryton.mo
index 96e3b5d..4e10cdb 100644
Binary files a/tryton/data/locale/ru/LC_MESSAGES/tryton.mo and b/tryton/data/locale/ru/LC_MESSAGES/tryton.mo differ
diff --git a/tryton/data/locale/sl/LC_MESSAGES/tryton.mo b/tryton/data/locale/sl/LC_MESSAGES/tryton.mo
index 4a6243c..d8c55dc 100644
Binary files a/tryton/data/locale/sl/LC_MESSAGES/tryton.mo and b/tryton/data/locale/sl/LC_MESSAGES/tryton.mo differ
diff --git a/tryton/data/locale/zh_CN/LC_MESSAGES/tryton.mo b/tryton/data/locale/zh_CN/LC_MESSAGES/tryton.mo
index 060637d..9d26eeb 100644
Binary files a/tryton/data/locale/zh_CN/LC_MESSAGES/tryton.mo and b/tryton/data/locale/zh_CN/LC_MESSAGES/tryton.mo differ
diff --git a/tryton/gui/window/view_form/model/field.py b/tryton/gui/window/view_form/model/field.py
index ebb8137..387440d 100644
--- a/tryton/gui/window/view_form/model/field.py
+++ b/tryton/gui/window/view_form/model/field.py
@@ -909,7 +909,7 @@ class BinaryField(Field):
 
     def get_data(self, record):
         if not isinstance(record.value.get(self.name),
-                (basestring, bytes, bytearray)):
+                (basestring, bytes, bytearray, _FileCache)):
             if record.id < 0:
                 return ''
             context = record.context_get()
diff --git a/tryton/gui/window/view_form/screen/screen.py b/tryton/gui/window/view_form/screen/screen.py
index b50b9d6..58015c6 100644
--- a/tryton/gui/window/view_form/screen/screen.py
+++ b/tryton/gui/window/view_form/screen/screen.py
@@ -725,6 +725,8 @@ class Screen(SignalEvent):
             return
         if (view.view_type == 'tree'
                 and not view.attributes.get('tree_state', False)):
+            # Mark as done to not set later when the view_type change
+            self.tree_states_done.add(id(view))
             return
         parent = self.parent.id if self.parent else None
         if parent is not None and parent < 0:
diff --git a/tryton/gui/window/view_form/view/form_gtk/dictionary.py b/tryton/gui/window/view_form/view/form_gtk/dictionary.py
index f712ff4..e044d2e 100644
--- a/tryton/gui/window/view_form/view/form_gtk/dictionary.py
+++ b/tryton/gui/window/view_form/view/form_gtk/dictionary.py
@@ -507,14 +507,17 @@ class DictWidget(Widget):
                 key_ids = RPCExecute('model', self.schema_model, 'search',
                     [('name', 'in', sub_keys), domain], 0,
                     CONFIG['client.limit'], None, context=context)
-                if not key_ids:
-                    continue
+            except RPCException:
+                key_ids = []
+            if not key_ids:
+                continue
+            try:
                 values = RPCExecute('model', self.schema_model,
                     'get_keys', key_ids, context=context)
-                if not values:
-                    continue
             except RPCException:
-                pass
+                values = []
+            if not values:
+                continue
             self.keys.update({k['name']: k for k in values})
 
     def display(self, record, field):
diff --git a/tryton/gui/window/view_form/view/form_gtk/textbox.py b/tryton/gui/window/view_form/view/form_gtk/textbox.py
index b0fe0fa..1572956 100644
--- a/tryton/gui/window/view_form/view/form_gtk/textbox.py
+++ b/tryton/gui/window/view_form/view/form_gtk/textbox.py
@@ -44,7 +44,8 @@ class TextBox(Widget, TranslateMixin):
     def _get_textview(self):
         if self.attrs.get('size'):
             textbuffer = TextBufferLimitSize(int(self.attrs['size']))
-            textview = gtk.TextView(textbuffer)
+            textview = gtk.TextView()
+            textview.set_buffer(textbuffer)
         else:
             textview = gtk.TextView()
         textview.set_wrap_mode(gtk.WRAP_WORD)
-- 
tryton-client



More information about the tryton-debian-vcs mailing list