def setup(): import home, inlibrary, borrow_home, libraries, stats, support, \ events, status, merge_editions, authors home.setup() inlibrary.setup() borrow_home.setup() libraries.setup() stats.setup() support.setup() events.setup() status.setup() merge_editions.setup() authors.setup() import api from stats import stats_hook delegate.app.add_processor(web.unloadhook(stats_hook)) if infogami.config.get("dev_instance") is True: import dev_instance dev_instance.setup() setup_context_defaults() setup_template_globals()
def setup(): import home, inlibrary, borrow_home, libraries, stats, support, events, status, merge_editions, authors home.setup() inlibrary.setup() borrow_home.setup() libraries.setup() stats.setup() support.setup() events.setup() status.setup() merge_editions.setup() authors.setup() import api api.setup() from stats import stats_hook delegate.app.add_processor(web.unloadhook(stats_hook)) if infogami.config.get("dev_instance") is True: import dev_instance dev_instance.setup() setup_template_globals() setup_logging() logger = logging.getLogger("openlibrary") logger.info("Application init")
def setup(): from openlibrary.plugins.openlibrary import (home, inlibrary, borrow_home, libraries, stats, support, events, design, status, merge_editions, authors) home.setup() design.setup() inlibrary.setup() borrow_home.setup() libraries.setup() stats.setup() support.setup() events.setup() status.setup() merge_editions.setup() authors.setup() from openlibrary.plugins.openlibrary import api delegate.app.add_processor(web.unloadhook(stats.stats_hook)) if infogami.config.get("dev_instance") is True: from openlibrary.plugins.openlibrary import dev_instance dev_instance.setup() setup_context_defaults() setup_template_globals()
def setup(): import home, inlibrary, borrow_home, libraries, stats home.setup() inlibrary.setup() borrow_home.setup() libraries.setup() stats.setup() from stats import stats_hook delegate.app.add_processor(web.unloadhook(stats_hook)) setup_template_globals() setup_logging() logger = logging.getLogger("openlibrary") logger.info("Application init")
def setup(): from openlibrary.plugins.openlibrary import (home, borrow_home, stats, support, events, design, status, authors) home.setup() design.setup() borrow_home.setup() stats.setup() support.setup() events.setup() status.setup() authors.setup() from openlibrary.plugins.openlibrary import api delegate.app.add_processor(web.unloadhook(stats.stats_hook)) if infogami.config.get('dev_instance') is True: from openlibrary.plugins.openlibrary import dev_instance dev_instance.setup() setup_context_defaults() setup_template_globals()