Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
T
TEIP-CMservice
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Wiki
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
VOPaaS
TEIP-CMservice
Commits
8f56b3e3
Commit
8f56b3e3
authored
6 years ago
by
Simone Visconti
Browse files
Options
Downloads
Patches
Plain Diff
removed wrong self
parent
dfec091a
Branches
add-display-name
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/cmservice/service/views.py
+2
-2
2 additions, 2 deletions
src/cmservice/service/views.py
with
2 additions
and
2 deletions
src/cmservice/service/views.py
+
2
−
2
View file @
8f56b3e3
...
...
@@ -51,7 +51,7 @@ def creq(jwt):
@consent_views.route
(
'
/consent/<ticket>
'
)
def
consent
(
ticket
):
data
=
current_app
.
cm
.
fetch_consent_request
(
ticket
)
displayName
=
self
.
_
retrieve_displayName
(
data
[
'
requester_name
'
])
displayName
=
retrieve_displayName
(
data
[
'
requester_name
'
])
if
data
is
None
:
# unknown ticket
logger
.
debug
(
'
received invalid ticket:
\'
%s
\'
'
,
ticket
)
...
...
@@ -101,7 +101,7 @@ def save_consent():
session
.
clear
()
return
redirect
(
redirect_uri
)
def
_
retrieve_displayName
(
entity_id
):
def
retrieve_displayName
(
entity_id
):
mdq_url
=
current_app
.
config
[
'
MDQ_URL
'
]
mdq_query
=
mdq_url
+
"
/entities/
"
+
urllib
.
parse
.
quote
(
entity_id
,
safe
=
''
)
e
=
xml
.
etree
.
ElementTree
.
parse
(
urlopen
(
mdq_query
)).
getroot
()
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment