Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
W
ws-eidaauth
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Packages & Registries
Packages & Registries
Container Registry
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
OSUG
RESIF
ws-eidaauth
Commits
adbfecf2
Commit
adbfecf2
authored
Mar 26, 2019
by
Jonathan Schaeffer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
table eida dédiée (avec network_id)
parent
89a5bb89
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
eidawsauth/eidawsauth.py
eidawsauth/eidawsauth.py
+2
-2
No files found.
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_users
(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_users
where name=%s;
"""
,
[
uidx
[
1
]])
conn
.
commit
()
conn
.
close
()
...
...
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