From 9bf8ca9c3b756accbaf6d0f88eb78e891c1028fb Mon Sep 17 00:00:00 2001 From: Roald Osinga Date: Fri, 5 Jan 2018 11:49:20 +0100 Subject: [PATCH] made cas_provider response py3 compatible --- gluon/tools.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/gluon/tools.py b/gluon/tools.py index f57e8dd7..716dafcd 100644 --- a/gluon/tools.py +++ b/gluon/tools.py @@ -2498,9 +2498,9 @@ class Auth(AuthAPI): success = True def build_response(body): - return '\n' +\ - TAG['cas:serviceResponse']( - body, **{'_xmlns:cas': 'http://www.yale.edu/tp/cas'}).xml() + xml_body = to_native(TAG['cas:serviceResponse']( + body, **{'_xmlns:cas': 'http://www.yale.edu/tp/cas'}).xml()) + return '\n' + xml_body if success: if version == 1: message = 'yes\n%s' % user[userfield]