aboutsummaryrefslogtreecommitdiff
path: root/pyaggr3g470r
diff options
context:
space:
mode:
authorCédric Bonhomme <kimble.mandel@gmail.com>2014-04-09 07:57:03 +0200
committerCédric Bonhomme <kimble.mandel@gmail.com>2014-04-09 07:57:03 +0200
commit3a72b59bf02ee74e9e9713705e819c5decbe3c88 (patch)
tree75c00c983f51a444c57769d87240830a30bcf71e /pyaggr3g470r
parentFixed README. (diff)
downloadnewspipe-3a72b59bf02ee74e9e9713705e819c5decbe3c88.tar.gz
newspipe-3a72b59bf02ee74e9e9713705e819c5decbe3c88.tar.bz2
newspipe-3a72b59bf02ee74e9e9713705e819c5decbe3c88.zip
Removed initialization script.
Diffstat (limited to 'pyaggr3g470r')
-rwxr-xr-xpyaggr3g470r/initialization.py29
-rw-r--r--pyaggr3g470r/views.py1
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
bgstack15