changeset acb4451d0af9 in modules/marketing_automation:default
details: 
https://hg.tryton.org/modules/marketing_automation?cmd=changeset;node=acb4451d0af9
description:
        Use string to format URL instead of bytes

        Bytes formatting is not supported by Python3.4
diffstat:

 marketing_automation.py |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (16 lines):

diff -r c6a8464bdd8a -r acb4451d0af9 marketing_automation.py
--- a/marketing_automation.py   Sat Mar 30 23:34:33 2019 +0100
+++ b/marketing_automation.py   Sun Mar 31 00:01:09 2019 +0100
@@ -514,9 +514,9 @@
 
         def unsubscribe(redirect):
             parts = urlsplit(urljoin(
-                    URL_BASE, quote(b'/m/%(database)s/unsubscribe' % {
-                            b'database': Base64Converter(None).to_url(
-                                Transaction().database.name),
+                    URL_BASE, quote('/m/%(database)s/unsubscribe' % {
+                            'database': Base64Converter(None).to_url(
+                                Transaction().database.name).decode('utf-8'),
                             })))
             query = parse_qsl(parts.query)
             query.append(('r', record.uuid))

Reply via email to