changeset c9801860af62 in trytond:default
details: https://hg.tryton.org/trytond?cmd=changeset&node=c9801860af62
description:
        Do not use authorisation for repr if it is None

        issue10642
        review342871005
diffstat:

 trytond/protocols/wrappers.py |  7 +++++--
 1 files changed, 5 insertions(+), 2 deletions(-)

diffs (17 lines):

diff -r 11744680f56f -r c9801860af62 trytond/protocols/wrappers.py
--- a/trytond/protocols/wrappers.py     Wed Aug 18 13:07:55 2021 +0200
+++ b/trytond/protocols/wrappers.py     Thu Aug 19 22:25:24 2021 +0200
@@ -37,8 +37,11 @@
             else:
                 url = self.url.decode(self.url_charset)
             auth = self.authorization
-            args.append("%s@%s" % (
-                    auth.get('userid', auth.username), self.remote_addr))
+            if auth:
+                args.append("%s@%s" % (
+                        auth.get('userid', auth.username), self.remote_addr))
+            else:
+                args.append(self.remote_addr)
             args.append("'%s'" % url)
             args.append("[%s]" % self.method)
             args.append("%s" % (self.rpc_method or ''))

Reply via email to