Commit db5df828 authored by Łukasz Nowak's avatar Łukasz Nowak

Convert to string to a void ":int" by make_query.

parent 05aef80a
...@@ -74,7 +74,7 @@ except ValueError:\n ...@@ -74,7 +74,7 @@ except ValueError:\n
query_dict = dict(\n query_dict = dict(\n
access_token=token.getReference(),\n access_token=token.getReference(),\n
token_type=\'bearer\',\n token_type=\'bearer\',\n
expires_in=int((token.getExpirationDate() - DateTime()) * 24 * 3600),\n expires_in=str(int((token.getExpirationDate() - DateTime()) * 24 * 3600)),\n
)\n )\n
if state:\n if state:\n
query_dict[\'state\'] = state\n query_dict[\'state\'] = state\n
...@@ -82,9 +82,9 @@ if state:\n ...@@ -82,9 +82,9 @@ if state:\n
query = make_query(query_dict)\n query = make_query(query_dict)\n
\n \n
if \'#\' in redirect_uri:\n if \'#\' in redirect_uri:\n
redirect_uri += \'&\' + make_query(query_dict)\n redirect_uri += \'&\' + query\n
else:\n else:\n
redirect_uri += \'#\' + make_query(query_dict)\n redirect_uri += \'#\' + query\n
return context.REQUEST.RESPONSE.redirect( redirect_uri )\n return context.REQUEST.RESPONSE.redirect( redirect_uri )\n
......
367 368
\ No newline at end of file \ No newline at end of file
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment