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
OSUG
RESIF
ws-eidaauth
Commits
adbfecf2
Commit
adbfecf2
authored
Mar 26, 2019
by
Jonathan Schaeffer
Browse files
table eida dédiée (avec network_id)
parent
89a5bb89
Changes
1
Hide whitespace changes
Inline
Side-by-side
eidawsauth/eidawsauth.py
View file @
adbfecf2
...
...
@@ -120,7 +120,7 @@ def register_privileges(login, fdsn_refs):
ref
[
'networkid'
]
=
cur
.
fetchone
()[
0
]
logging
.
info
(
ref
)
cur
.
execute
(
"""
insert into
aut
_user (network_id, network, start_year, end_year, name) values (%(networkid)s, %(networkcode)s, %(startyear)s, %(endyear)s, %(login)s);
insert into
eida_temp
_user
s
(network_id, network, start_year, end_year, name) values (%(networkid)s, %(networkcode)s, %(startyear)s, %(endyear)s, %(login)s);
"""
,
ref
)
conn
.
commit
()
conn
.
close
()
...
...
@@ -185,7 +185,7 @@ def cleanup():
for
uidx
in
users
:
logging
.
debug
(
uidx
)
cur
.
execute
(
"""
delete from
aut
_user where name=%s;
delete from
eida_temp
_user
s
where name=%s;
"""
,
[
uidx
[
1
]])
conn
.
commit
()
conn
.
close
()
...
...
Write
Preview
Supports
Markdown
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