Beispiel #1
0
    def __init__(self, settings):
        handlers = routes.routes

        # Set up database connections
        DatabaseMixin.setup(settings)

        cyclone.web.Application.__init__(self, handlers, **settings)
Beispiel #2
0
    def __init__(self, settings):
        handlers = routes.routes

        # Set up database connections
        DatabaseMixin.setup(settings)

        #Processing pipeline
        if should_process:
            processor = DocProcessor()
            processor.process()

        cyclone.web.Application.__init__(self, handlers, **settings)
Beispiel #3
0
    def __init__(self, settings):
        handlers = routes.routes

        # Initialize locales
        locales = settings.get("locale_path")
        if locales:
            cyclone.locale.load_gettext_translations(locales, "cyclone_server")

        # Set up database connections
        DatabaseMixin.setup(settings)

        cyclone.web.Application.__init__(self, handlers, **settings)
Beispiel #4
0
    def __init__(self, settings):
        handlers = routes.routes

        # Set up database connections
        DatabaseMixin.setup(settings)

        #Processing pipeline
        if should_process:
            processor = DocProcessor()
            processor.process()

        cyclone.web.Application.__init__(self, handlers, **settings)
Beispiel #5
0
    def __init__(self, settings):
        handlers = routes.routes
        if not settings['enable_logging']:
            settings['log_function'] = lambda *args: None

        # Initialize locales
        locales = settings.get("locale_path")
        if locales:
            cyclone.locale.load_gettext_translations(locales, "cyclone_server")

        # Set up database connections
        DatabaseMixin.setup(settings)

        cyclone.web.Application.__init__(self, handlers, **settings)