aboutsummaryrefslogtreecommitdiff
path: root/pyaggr3g470r/initialization.py
diff options
context:
space:
mode:
Diffstat (limited to 'pyaggr3g470r/initialization.py')
-rwxr-xr-xpyaggr3g470r/initialization.py29
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()
bgstack15