changeset 8cabe96afb34 in tryton:5.0
details: https://hg.tryton.org/tryton?cmd=changeset;node=8cabe96afb34
description:
        Decode JSON selection data

        json.loads accept bytes only since Python 3.6

        issue7833
        review48691002
        (grafted from e22f72bfb356e936123758f2bb586fa4ae4862f4)
diffstat:

 tryton/gui/window/view_form/view/list.py |  1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diffs (11 lines):

diff -r b15c7470ba71 -r 8cabe96afb34 tryton/gui/window/view_form/view/list.py
--- a/tryton/gui/window/view_form/view/list.py  Wed Jan 02 18:53:18 2019 +0100
+++ b/tryton/gui/window/view_form/view/list.py  Wed Jan 02 18:59:47 2019 +0100
@@ -762,6 +762,7 @@
             selection_data = selection.get_data()
         if not selection_data:
             return
+        selection_data = selection_data.decode('utf-8')
 
         # Don't received if the treeview was editing because it breaks the
         # internal state of the cursor.

Reply via email to