Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
gargantext
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
humanities
gargantext
Commits
5ccf4761
Commit
5ccf4761
authored
Oct 12, 2016
by
delanoe
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[INIT ACCOUNTS] Message update: old.gargantext.org
parent
b790c790
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
3 deletions
+9
-3
init_accounts.py
init_accounts.py
+9
-3
No files found.
init_accounts.py
View file @
5ccf4761
...
...
@@ -63,6 +63,10 @@ def notify_user(username, email, password):
Cependant, vos retours seront précieux pour poursuivre le
développement de la plateforme: merci d'avance!
Si vous souhaitez accéder à vos anciens corpus, vos codes d'accès
sont valides à cette adresse jusqu'en 30 juin 2017 minuit:
http://old.gargantext.org
Nous restons à votre disposition pour tout complément d'information.
Cordialement
--
...
...
@@ -108,15 +112,17 @@ def mass_account_creation(fichier=None,init=False):
accounts
=
open
(
fichier
,
"r"
)
for
line
in
accounts
.
readlines
():
username
,
email
,
password
,
fin
=
line
.
split
(
','
)
try
:
user
=
session
.
query
(
User
)
.
filter
(
User
.
username
==
username
)
.
first
()
user
=
session
.
query
(
User
)
.
filter
(
User
.
username
==
username
)
.
first
()
if
user
is
not
None
:
print
(
"User
%
s does exist already"
%
(
username
))
if
init
==
True
:
create_user
(
username
,
email
,
user
=
user
,
password
=
password
,
active
=
True
,
notify
=
True
)
print
(
"User
%
s updated"
%
(
username
))
e
xcept
:
e
lse
:
print
(
"User
%
s does not exist already"
%
(
username
))
create_user
(
username
,
email
,
password
=
password
,
active
=
True
,
notify
=
True
)
print
(
"User
%
s createed"
%
(
username
))
#delete_user(username)
accounts
.
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