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
c13dce7e
Commit
c13dce7e
authored
Jan 16, 2015
by
Administrator
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
accounts
parent
a7b8f8f8
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
init_accounts.py
init_accounts.py
+3
-3
No files found.
init_accounts.py
View file @
c13dce7e
...
...
@@ -53,11 +53,11 @@ def active_user(username, active=True):
def
mines_account_creation
(
fichier
=
None
):
if
fichier
is
None
:
fichier
=
"/home/alexandre/projets/forccast/Tutorat/2014-2015/comptes_gargantext.
txt
"
fichier
=
"/home/alexandre/projets/forccast/Tutorat/2014-2015/comptes_gargantext.
csv
"
accounts
=
open
(
fichier
,
"r"
)
for
line
in
accounts
.
readlines
():
username
,
email
,
password
=
line
.
split
(
','
)
#
create_user(username, email, password=password, notify=True)
delete_user
(
username
)
create_user
(
username
,
email
,
password
=
password
,
notify
=
True
)
#
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