# Path: atomicpress/models.py
# class Blog(db.Model):
# class Author(db.Model):
# class PostType():
# class PostStatus():
# class Post(db.Model):
# class Tag(db.Model):
# class Category(db.Model):
#     def __unicode__(self):
#     def __unicode__(self):
#     def __unicode__(self):
#     def __unicode__(self):
#     def __unicode__(self):
#     POST = "post"
#     PAGE = "page"
#     ATTACHMENT = "attachment"
#     REVISION = "revision"
#     NAVIGATION_MENU = "nav_menu_item"
#     PUBLISH = "publish"
#     DRAFT = "draft"
#     FUTURE = "future"
#     PENDING = "pending"
#     PRIVATE = "private"
#     TRASH = "trash"
# 
# Path: atomicpress/app.py
# DEFAULT_EXTENSIONS = (
#     "atomicpress.ext.importer",
#     "atomicpress.ext.exporter",
#     "atomicpress.ext.ftp",
#     "atomicpress.ext.s3",
#     "atomicpress.ext.prefill",
# )
# DEFAULT_MARKDOWN_EXTENSIONS = [
#     "markdown.extensions.tables",
#     "markdown.extensions.nl2br",
#     "markdown.extensions.fenced_code",
#     "markdown.extensions.headerid"
# ]
# def setup(init_run=False):
# def activate_extensions():
# def activate_theme(theme):
# def run():


from flask import current_app
from flask_admin.contrib.fileadmin import FileAdmin
from flask_admin import AdminIndexView, expose, Admin
from flask_admin.contrib.sqla import ModelView
from wtforms.validators import Required
from atomicpress import models
from atomicpress.app import db
        },
        'excerpt': {
            'class': 'input-xxlarge'
        },
        'content': {
            'rows': 10,
            'class': 'input-xxlarge'
        }
    }

    form_args = {
        'guid': {
            'validators': [Required()]
        },
        'title': {
            'validators': [Required()]
        },
        'name': {
            'validators': [Required()]
        }
    }


def create_admin():
    app = current_app._get_current_object()
    admin = Admin(app, "AtomicPress", index_view=HomeView(name='Home'))

    admin.add_view(ModelView(models.Blog, db.session, category="Blog"))
    admin.add_view(ModelView(models.Author, db.session, category="Blog"))


# Path: atomicpress/models.py
# class Blog(db.Model):
# class Author(db.Model):
# class PostType():
# class PostStatus():
# class Post(db.Model):
# class Tag(db.Model):
# class Category(db.Model):
#     def __unicode__(self):
#     def __unicode__(self):
#     def __unicode__(self):
#     def __unicode__(self):
#     def __unicode__(self):
#     POST = "post"
#     PAGE = "page"
#     ATTACHMENT = "attachment"
#     REVISION = "revision"
#     NAVIGATION_MENU = "nav_menu_item"
#     PUBLISH = "publish"
#     DRAFT = "draft"
#     FUTURE = "future"
#     PENDING = "pending"
#     PRIVATE = "private"
#     TRASH = "trash"
# 
# Path: atomicpress/app.py
# DEFAULT_EXTENSIONS = (
#     "atomicpress.ext.importer",
#     "atomicpress.ext.exporter",
#     "atomicpress.ext.ftp",
#     "atomicpress.ext.s3",
#     "atomicpress.ext.prefill",
# )
# DEFAULT_MARKDOWN_EXTENSIONS = [
#     "markdown.extensions.tables",
#     "markdown.extensions.nl2br",
#     "markdown.extensions.fenced_code",
#     "markdown.extensions.headerid"
# ]
# def setup(init_run=False):
# def activate_extensions():
# def activate_theme(theme):
# def run():


# Path: atomicpress/admin.py
from flask import current_app
from flask_admin.contrib.fileadmin import FileAdmin
from flask_admin import AdminIndexView, expose, Admin
from flask_admin.contrib.sqla import ModelView
from wtforms.validators import Required
from atomicpress import models
from atomicpress.app import db

        },
        'excerpt': {
            'class': 'input-xxlarge'
        },
        'content': {
            'rows': 10,
            'class': 'input-xxlarge'
        }
    }

    form_args = {
        'guid': {
            'validators': [Required()]
        },
        'title': {
            'validators': [Required()]
        },
        'name': {
            'validators': [Required()]
        }
    }


def create_admin():
    app = current_app._get_current_object()
    admin = Admin(app, "AtomicPress", index_view=HomeView(name='Home'))

    admin.add_view(ModelView(models.Blog, db.session, category="Blog"))
    admin.add_view(ModelView(models.Author, db.session, category="Blog"))


    admin.add_view(PostView(models.Post, db.session, category="Post"))