# Path: airy/core/conf.py
# class Settings(object):
#     def __init__(self, **entries):
#     def __getattribute__(self, name):
# def _ensure_defaults(dsettings, options, project_root, config_filename):
# def _preconfigure(project_root, config_filename='settings.py', argv=[]):
# 
# Path: airy/core/web.py
# class ConnectionSet(set):
# class UIProxy(object):
# class UIProxySet(object):
# class AirySite(object):
# class AiryRequestHandler(RequestHandler):
# class AiryHandler(object):
# class AiryCoreHandler(SocketConnection):
# class FormProcessor(AiryRequestHandler):
#     def _get_filter_condition(self, item, key, value):
#     def filter(self, **kwargs):
#     def exclude(self, *args, **kwargs):
#     def ui(self):
#     def __getattr__(self, name):
#         def filtered_func(conn_set, name, *args, **kwargs):
#     def __init__(self, connection):
#     def execute(self, data):
#     def redirect(self, url):
#     def insert(self, target, data=None):
#     def after(self, target, data=None):
#     def append(self, target, data=None):
#     def prepend(self, target, data=None):
#     def remove(self, target):
#     def set_title(self, text):
#     def set_meta_description(self, text):
#     def render_string(self, template_name, **kwargs):
#     def render(self, target, template_name, **kwargs):
#     def html(self, template_name, **kwargs):
#     def __init__(self, connections):
#     def __getattr__(self, name):
#         def filtered_func(ui_set, name, *args, **kwargs):
#     def resolve_url(self, url, connection, arguments={}):
#                             def unquote(s):
#     def _flatten_arguments(self, arguments):
#     def get_flat_arguments(self):
#     def get_current_user(self):
#     def get_cookie(self, name, default=None):
#     def render_string(self, template_name, **kwargs):
#     def is_robot(self, *args, **kwargs):
#     def __init__(self, site, connection, arguments={}, **kwargs):
#     def get_argument(self, name, default=_ARG_DEFAULT, strip=True):
#     def get_arguments(self, name, strip=True):
#     def _flatten_arguments(self, arguments):
#     def get_flat_arguments(self):
#     def get_files(self):
#     def decode_argument(self, value, name=None):
#     def __getattr__(self, item):
#     def on_open(self, info):
#     def set_state(self, state):
#     def get(self, url, *args, **kwargs):
#     def post(self, url, *args, **kwargs):
#     def on_close(self):
#     def cookies(self):
#     def get_cookie(self, name, default=None):
#     def set_cookie(self, name, value, domain=None, expires=None, path="/",
#                    expires_days=None, **kwargs):
#     def clear_cookie(self, name, path="/", domain=None):
#     def clear_all_cookies(self):
#     def set_secure_cookie(self, name, value, expires_days=30, **kwargs):
#     def create_signed_value(self, name, value):
#     def get_secure_cookie(self, name, value=None, max_age_days=31):
#     def get_argument(self, name, default=_ARG_DEFAULT, strip=True):
#     def get_arguments(self, name, strip=True):
#     def _flatten_arguments(self, arguments):
#     def get_flat_arguments(self):
#     def get_files(self):
#     def decode_argument(self, value, name=None):
#     def current_user(self):
#     def get_current_user(self):
#     def require_setting(self, name, feature="this feature"):
#     def get_login_url(self):
#     def process_404(self, *args, **kwargs):
#     def parse_url(self, url):
#     def reverse_url(self, name, *args):
#     def render_string(self, template_name, **kwargs):
#     def __getattr__(self, item):
#     def check_xsrf_cookie(self):
#     def post(self, *args, **kwargs):
# def utf8(value):
#     _ARG_DEFAULT = []
#     _ARG_DEFAULT = []
# _UTF8_TYPES = (bytes, type(None))


import tornado.web
import os
        import tornado.options
from tornado import template, autoreload
from tornadio2 import SocketServer, TornadioRouter
from airy.core.conf import settings, _preconfigure
from airy.core import web
    from IPython import embed
        tornado.options.print_help()
    else:
        if argv[1] in command_manager:
            command_manager[argv[1]](*argv[2:])
        else:
            print "Error: unknown command '%s'" % argv[1]


def shell():

    # add application handlers
    for appname in settings.installed_apps:
        try:
            __import__('%s.models' % appname, fromlist=['%s.models'%appname])
        except ImportError:
            pass

    embed()

def run(project_root):
    serverurls = []
    servermodels = []

    # add Airy static file handler
    serverurls.extend([
        (r"/airy/form/", web.FormProcessor),
        (r"/airy/(.*)", tornado.web.StaticFileHandler, {"path": os.path.join(AIRY_ROOT, 'static')})
    ])

    # add Airy core handler

# Path: airy/core/conf.py
# class Settings(object):
#     def __init__(self, **entries):
#     def __getattribute__(self, name):
# def _ensure_defaults(dsettings, options, project_root, config_filename):
# def _preconfigure(project_root, config_filename='settings.py', argv=[]):
# 
# Path: airy/core/web.py
# class ConnectionSet(set):
# class UIProxy(object):
# class UIProxySet(object):
# class AirySite(object):
# class AiryRequestHandler(RequestHandler):
# class AiryHandler(object):
# class AiryCoreHandler(SocketConnection):
# class FormProcessor(AiryRequestHandler):
#     def _get_filter_condition(self, item, key, value):
#     def filter(self, **kwargs):
#     def exclude(self, *args, **kwargs):
#     def ui(self):
#     def __getattr__(self, name):
#         def filtered_func(conn_set, name, *args, **kwargs):
#     def __init__(self, connection):
#     def execute(self, data):
#     def redirect(self, url):
#     def insert(self, target, data=None):
#     def after(self, target, data=None):
#     def append(self, target, data=None):
#     def prepend(self, target, data=None):
#     def remove(self, target):
#     def set_title(self, text):
#     def set_meta_description(self, text):
#     def render_string(self, template_name, **kwargs):
#     def render(self, target, template_name, **kwargs):
#     def html(self, template_name, **kwargs):
#     def __init__(self, connections):
#     def __getattr__(self, name):
#         def filtered_func(ui_set, name, *args, **kwargs):
#     def resolve_url(self, url, connection, arguments={}):
#                             def unquote(s):
#     def _flatten_arguments(self, arguments):
#     def get_flat_arguments(self):
#     def get_current_user(self):
#     def get_cookie(self, name, default=None):
#     def render_string(self, template_name, **kwargs):
#     def is_robot(self, *args, **kwargs):
#     def __init__(self, site, connection, arguments={}, **kwargs):
#     def get_argument(self, name, default=_ARG_DEFAULT, strip=True):
#     def get_arguments(self, name, strip=True):
#     def _flatten_arguments(self, arguments):
#     def get_flat_arguments(self):
#     def get_files(self):
#     def decode_argument(self, value, name=None):
#     def __getattr__(self, item):
#     def on_open(self, info):
#     def set_state(self, state):
#     def get(self, url, *args, **kwargs):
#     def post(self, url, *args, **kwargs):
#     def on_close(self):
#     def cookies(self):
#     def get_cookie(self, name, default=None):
#     def set_cookie(self, name, value, domain=None, expires=None, path="/",
#                    expires_days=None, **kwargs):
#     def clear_cookie(self, name, path="/", domain=None):
#     def clear_all_cookies(self):
#     def set_secure_cookie(self, name, value, expires_days=30, **kwargs):
#     def create_signed_value(self, name, value):
#     def get_secure_cookie(self, name, value=None, max_age_days=31):
#     def get_argument(self, name, default=_ARG_DEFAULT, strip=True):
#     def get_arguments(self, name, strip=True):
#     def _flatten_arguments(self, arguments):
#     def get_flat_arguments(self):
#     def get_files(self):
#     def decode_argument(self, value, name=None):
#     def current_user(self):
#     def get_current_user(self):
#     def require_setting(self, name, feature="this feature"):
#     def get_login_url(self):
#     def process_404(self, *args, **kwargs):
#     def parse_url(self, url):
#     def reverse_url(self, name, *args):
#     def render_string(self, template_name, **kwargs):
#     def __getattr__(self, item):
#     def check_xsrf_cookie(self):
#     def post(self, *args, **kwargs):
# def utf8(value):
#     _ARG_DEFAULT = []
#     _ARG_DEFAULT = []
# _UTF8_TYPES = (bytes, type(None))


# Path: airy/core/manager.py
import tornado.web
import os
        import tornado.options
from tornado import template, autoreload
from tornadio2 import SocketServer, TornadioRouter
from airy.core.conf import settings, _preconfigure
from airy.core import web
    from IPython import embed

        tornado.options.print_help()
    else:
        if argv[1] in command_manager:
            command_manager[argv[1]](*argv[2:])
        else:
            print "Error: unknown command '%s'" % argv[1]


def shell():

    # add application handlers
    for appname in settings.installed_apps:
        try:
            __import__('%s.models' % appname, fromlist=['%s.models'%appname])
        except ImportError:
            pass

    embed()

def run(project_root):
    serverurls = []
    servermodels = []

    # add Airy static file handler
    serverurls.extend([
        (r"/airy/form/", web.FormProcessor),
        (r"/airy/(.*)", tornado.web.StaticFileHandler, {"path": os.path.join(AIRY_ROOT, 'static')})
    ])

    # add Airy core handler

    core_router = TornadioRouter(web.AiryCoreHandler, settings.__dict__)