aboutsummaryrefslogtreecommitdiff
path: root/pyaggr3g470r
diff options
context:
space:
mode:
authorCédric Bonhomme <kimble.mandel@gmail.com>2013-11-10 00:30:33 +0100
committerCédric Bonhomme <kimble.mandel@gmail.com>2013-11-10 00:30:33 +0100
commitb409e27ede57bf4d44e791305b0e2ed5cd1d72ed (patch)
tree5bf8efbe5badcdc8d09dd130f03c1d9e9e53a895 /pyaggr3g470r
parentUpdated templates. (diff)
downloadnewspipe-b409e27ede57bf4d44e791305b0e2ed5cd1d72ed.tar.gz
newspipe-b409e27ede57bf4d44e791305b0e2ed5cd1d72ed.tar.bz2
newspipe-b409e27ede57bf4d44e791305b0e2ed5cd1d72ed.zip
Removed admin interface.
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