Commit 38afb14b authored by Nicolas Chauvat's avatar Nicolas Chauvat
Browse files

[migration] fix 3.15 deprecation warnings (closes #2750550)

parent 5aa28d5833b6
......@@ -57,6 +57,6 @@ for dname in ('entities', 'views', 'sobjects', 'hooks', 'schema', 'data', 'wdoc'
# Note: here, you'll need to add subdirectories if you want
# them to be included in the debian package
__depends__ = {'cubicweb': '>= 3.9.3'}
__depends__ = {'cubicweb': '>= 3.15.0'}
__recommends__ = {}
......@@ -27,7 +27,8 @@ __docformat__ = "restructuredtext en"
import os.path as osp
import base64
from cubicweb.selectors import objectify_selector
from logilab.common.registry import objectify_predicate
from cubicweb.web.views import authentication, actions, basecontrollers
from cubes.trustedauth.cryptutils import build_cypher
......@@ -83,7 +84,7 @@ class XRemoteUserRetriever(authentication.WebAuthInfoRetreiver):
return None
return login
@objectify_selector
@objectify_predicate
def trust_authenticated(cls, req, rset=None, **kwargs):
return int(getattr(req.cnx, 'trusted_cwuser', False))
......
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