Commit 9e89caca authored by Łukasz Nowak's avatar Łukasz Nowak

Cut up to 80th column.

parent 962b2042
...@@ -57,7 +57,8 @@ def responseSupport(fn): ...@@ -57,7 +57,8 @@ def responseSupport(fn):
if getSecurityManager().getUser().getId() is None: if getSecurityManager().getUser().getId() is None:
# force login # force login
response.setStatus(401) response.setStatus(401)
response.setHeader('WWW-Authenticate', 'Bearer realm="%s"' % self.absolute_url()) response.setHeader('WWW-Authenticate', 'Bearer realm="%s"'%
self.absolute_url())
response.setHeader('Location', self.getPortalObject()\ response.setHeader('Location', self.getPortalObject()\
.portal_preferences.getPreferredRestApiV1TokenServerUrl()) .portal_preferences.getPreferredRestApiV1TokenServerUrl())
return response return response
......
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