diff options
author | Cédric Bonhomme <kimble.mandel@gmail.com> | 2014-04-09 07:57:03 +0200 |
---|---|---|
committer | Cédric Bonhomme <kimble.mandel@gmail.com> | 2014-04-09 07:57:03 +0200 |
commit | 3a72b59bf02ee74e9e9713705e819c5decbe3c88 (patch) | |
tree | 75c00c983f51a444c57769d87240830a30bcf71e /pyaggr3g470r/initialization.py | |
parent | Fixed README. (diff) | |
download | newspipe-3a72b59bf02ee74e9e9713705e819c5decbe3c88.tar.gz newspipe-3a72b59bf02ee74e9e9713705e819c5decbe3c88.tar.bz2 newspipe-3a72b59bf02ee74e9e9713705e819c5decbe3c88.zip |
Removed initialization script.
Diffstat (limited to 'pyaggr3g470r/initialization.py')
-rwxr-xr-x | pyaggr3g470r/initialization.py | 29 |
1 files changed, 0 insertions, 29 deletions
diff --git a/pyaggr3g470r/initialization.py b/pyaggr3g470r/initialization.py deleted file mode 100755 index fd0a59f8..00000000 --- a/pyaggr3g470r/initialization.py +++ /dev/null @@ -1,29 +0,0 @@ -#! /usr/bin/env python -# -*- coding: utf-8 -*- - -"""initialization.py - -Initialization script. -""" - -import sys -from mongoengine import * -from werkzeug import generate_password_hash - -sys.path.append(".") -import conf -import models - -if __name__ == "__main__": - # Point of entry in execution mode - firstname = sys.argv[1] - lastname = sys.argv[2] - email = sys.argv[3] - password = sys.argv[4] - - db = connect(conf.DATABASE_NAME) - db.drop_database(conf.DATABASE_NAME) - - user = models.User(firstname=firstname, lastname=lastname, \ - email=email, pwdhash=generate_password_hash(password)) - user.save() |