aboutsummaryrefslogtreecommitdiff
path: root/pyaggr3g470r
diff options
context:
space:
mode:
Diffstat (limited to 'pyaggr3g470r')
-rw-r--r--pyaggr3g470r/__init__.py27
1 files changed, 1 insertions, 26 deletions
diff --git a/pyaggr3g470r/__init__.py b/pyaggr3g470r/__init__.py
index 4aa21687..b24f3c7d 100644
--- a/pyaggr3g470r/__init__.py
+++ b/pyaggr3g470r/__init__.py
@@ -3,12 +3,9 @@
import os
-from flask import Flask, session, g
+from flask import Flask
from flask.ext.mongoengine import MongoEngine
-from flask.ext.admin import Admin
-from flask.ext.admin.contrib.mongoengine import ModelView
-
import conf
from models import *
@@ -33,26 +30,4 @@ db.init_app(app)
from views import mail
mail.init_app(app)
-# Administration panel
-admin = Admin(app, name='pyAggr3g470r')
-# Add administrative views here
-class UserView(ModelView):
- form_subdocuments = {
- 'feeds': {
- 'form_columns': ('title', 'link')
- }
- }
-class FeedView(ModelView):
- column_filters = ['title', 'link']
-
- column_searchable_list = ('title', 'link')
-class ArticleView(ModelView):
- column_filters = ['title', 'link']
-
- column_searchable_list = ('title', 'link')
-#admin.add_view(UserView(User))
-admin.add_view(FeedView(Feed))
-admin.add_view(ArticleView(Article))
-
-
from pyaggr3g470r import views \ No newline at end of file
bgstack15