# Path: _helpers.py
# ONLINE_LAST_MINUTES = 5
# def force_int(value,default=1):
#     def block_code(self,text,lang):
# def fill_with_user(items):
# def fill_with_node(items):
# def fill_object(items,objects,*args,**kwargs):
# def _add_attr(item,objects_dict,arg,kwargs):
# def mark_online(user_id):
# def get_online_users():
# class BleepRenderer(HtmlRenderer,SmartyPants):
# class MaxinObject(object):


from flask import Flask
from _helpers import db,cache,BleepRenderer,login_manager,mark_online
from flask.ext.login import login_required,current_user 
    from views.admin import load_sidebar_notice
    from views.focus import getNodes
    from views import index,topic,account,node,admin,user,notice,focus
import os,codecs
import misaka as m
import datetime
# coding:utf-8
#from _helpers import db,mark_online#,mail

def create_app():
    app = Flask(__name__)
    app.secret_key = '\x03\xedS\x08d`\xb0\x97_\x960x\xac\x12\x87\x88\x9f@x:n`\xeb\xd5'
    app.config['SQLALCHEMY_DATABASE_URI'] = 'sqlite:///database.db'
    app.config['ROOTDIR'] = os.getcwd()
    app.config['ONLINEUSERS'] = set()
    app.debug = True

    register_jinja(app)
    register_routes(app)

# Path: _helpers.py
# ONLINE_LAST_MINUTES = 5
# def force_int(value,default=1):
#     def block_code(self,text,lang):
# def fill_with_user(items):
# def fill_with_node(items):
# def fill_object(items,objects,*args,**kwargs):
# def _add_attr(item,objects_dict,arg,kwargs):
# def mark_online(user_id):
# def get_online_users():
# class BleepRenderer(HtmlRenderer,SmartyPants):
# class MaxinObject(object):


# Path: app.py
from flask import Flask
from _helpers import db,cache,BleepRenderer,login_manager,mark_online
from flask.ext.login import login_required,current_user 
    from views.admin import load_sidebar_notice
    from views.focus import getNodes
    from views import index,topic,account,node,admin,user,notice,focus
import os,codecs
import misaka as m
import datetime

# coding:utf-8
#from _helpers import db,mark_online#,mail

def create_app():
    app = Flask(__name__)
    app.secret_key = '\x03\xedS\x08d`\xb0\x97_\x960x\xac\x12\x87\x88\x9f@x:n`\xeb\xd5'
    app.config['SQLALCHEMY_DATABASE_URI'] = 'sqlite:///database.db'
    app.config['ROOTDIR'] = os.getcwd()
    app.config['ONLINEUSERS'] = set()
    app.debug = True

    register_jinja(app)
    register_routes(app)

    db.init_app(app)