diff options
Diffstat (limited to 'pyaggr3g470r')
-rwxr-xr-x | pyaggr3g470r/initialization.py | 29 | ||||
-rw-r--r-- | pyaggr3g470r/views.py | 1 |
2 files changed, 0 insertions, 30 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() diff --git a/pyaggr3g470r/views.py b/pyaggr3g470r/views.py index 04d24d95..7544ad7f 100644 --- a/pyaggr3g470r/views.py +++ b/pyaggr3g470r/views.py @@ -32,7 +32,6 @@ from flask import render_template, jsonify, request, flash, session, url_for, re from flask.ext.login import LoginManager, login_user, logout_user, login_required, current_user, AnonymousUserMixin from flask.ext.principal import Principal, Identity, AnonymousIdentity, identity_changed, identity_loaded, Permission, RoleNeed, UserNeed -import conf import utils import export import feedgetter |