ci: upgrade pylint to latest version

core: also upgrade kombu as https://github.com/celery/kombu/issues/1101 is fixed now
This commit is contained in:
Jens Langhammer
2019-12-31 12:45:29 +01:00
parent 31ea2e7139
commit 8eb3f0f708
17 changed files with 160 additions and 140 deletions

View File

@ -15,18 +15,18 @@ from passbook.lib.utils.urls import is_url_absolute
from passbook.policies.engine import PolicyEngine
LOGGER = get_logger()
# Argument used to redirect user after login
NEXT_ARG_NAME = 'next'
def _redirect_with_qs(view, get_query_set=None):
"""Wrapper to redirect whilst keeping GET Parameters"""
target = reverse(view)
if get_query_set:
target += '?' + urlencode({key: value for key, value in get_query_set.items()})
target += '?' + urlencode(get_query_set)
return redirect(target)
# Argument used to redirect user after login
NEXT_ARG_NAME = 'next'
class AuthenticationView(UserPassesTestMixin, View):
"""Wizard-like Multi-factor authenticator"""
@ -165,5 +165,6 @@ class AuthenticationView(UserPassesTestMixin, View):
del self.request.session[key]
LOGGER.debug("Cleaned up sessions")
class FactorPermissionDeniedView(PermissionDeniedView):
"""User could not be authenticated"""