Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
cubicweb
cubes
trustedauth
Commits
c26b9d268046
Commit
38afb14b
authored
Mar 13, 2013
by
Nicolas Chauvat
Browse files
[migration] fix 3.15 deprecation warnings (closes #2750550)
parent
5aa28d5833b6
Changes
2
Hide whitespace changes
Inline
Side-by-side
__pkginfo__.py
View file @
c26b9d26
...
...
@@ -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__
=
{}
views.py
View file @
c26b9d26
...
...
@@ -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
))
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment