From b409e27ede57bf4d44e791305b0e2ed5cd1d72ed Mon Sep 17 00:00:00 2001 From: Cédric Bonhomme Date: Sun, 10 Nov 2013 00:30:33 +0100 Subject: Removed admin interface. --- pyaggr3g470r/__init__.py | 27 +-------------------------- 1 file changed, 1 insertion(+), 26 deletions(-) (limited to 'pyaggr3g470r') 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 -- cgit