# Path: nflpool/controllers/base_controller.py
# class BaseController:
#     def __init__(self, request):
#         self.request = request
#         self.build_cache_id = static_cache.build_cache_id
# 
#         layout_render = pyramid.renderers.get_renderer(
#             "nflpool:templates/shared/_layout.pt"
#         )
#         impl = layout_render.implementation()
#         self.layout = impl.macros["layout"]
# 
#         log_name = "Ctrls/" + type(self).__name__.replace("Controller", "")
#         self.log = logbook.Logger(log_name)
# 
#     @property
#     def is_logged_in(self):
#         return cookie_auth.get_user_id_via_auth_cookie(self.request) is not None
# 
#     # noinspection PyMethodMayBeStatic
#     @suppress()
#     def redirect(self, to_url, permanent=False):
#         if permanent:
#             raise exc.HTTPMovedPermanently(to_url)
#         raise exc.HTTPFound(to_url)
# 
#     @property
#     def data_dict(self):
#         data = dict()
#         data.update(self.request.GET)
#         data.update(self.request.POST)
#         data.update(self.request.matchdict)
# 
#         return data
# 
#     @property
#     def logged_in_user_id(self):
#         user_id = cookie_auth.get_user_id_via_auth_cookie(self.request)
#         return user_id
# 
#     @property
#     def logged_in_user(self):
#         uid = self.logged_in_user_id
#         if not uid:
#             return None
# 
#         return AccountService.find_account_by_id(uid)


import pyramid_handlers
from nflpool.controllers.base_controller import BaseController


class HomeController(BaseController):
    @pyramid_handlers.action(renderer="templates/home/index.pt")
    def index(self):
        return {}

    @pyramid_handlers.action(renderer="templates/home/about.pt")
    def about(self):
        return {}

    @pyramid_handlers.action(renderer="templates/home/contact.pt")
    def contact(self):
        return {}

    @pyramid_handlers.action(renderer="templates/home/credits.pt")

# Path: nflpool/controllers/base_controller.py
# class BaseController:
#     def __init__(self, request):
#         self.request = request
#         self.build_cache_id = static_cache.build_cache_id
# 
#         layout_render = pyramid.renderers.get_renderer(
#             "nflpool:templates/shared/_layout.pt"
#         )
#         impl = layout_render.implementation()
#         self.layout = impl.macros["layout"]
# 
#         log_name = "Ctrls/" + type(self).__name__.replace("Controller", "")
#         self.log = logbook.Logger(log_name)
# 
#     @property
#     def is_logged_in(self):
#         return cookie_auth.get_user_id_via_auth_cookie(self.request) is not None
# 
#     # noinspection PyMethodMayBeStatic
#     @suppress()
#     def redirect(self, to_url, permanent=False):
#         if permanent:
#             raise exc.HTTPMovedPermanently(to_url)
#         raise exc.HTTPFound(to_url)
# 
#     @property
#     def data_dict(self):
#         data = dict()
#         data.update(self.request.GET)
#         data.update(self.request.POST)
#         data.update(self.request.matchdict)
# 
#         return data
# 
#     @property
#     def logged_in_user_id(self):
#         user_id = cookie_auth.get_user_id_via_auth_cookie(self.request)
#         return user_id
# 
#     @property
#     def logged_in_user(self):
#         uid = self.logged_in_user_id
#         if not uid:
#             return None
# 
#         return AccountService.find_account_by_id(uid)


# Path: nflpool/controllers/home_controller.py
import pyramid_handlers
from nflpool.controllers.base_controller import BaseController



class HomeController(BaseController):
    @pyramid_handlers.action(renderer="templates/home/index.pt")
    def index(self):
        return {}

    @pyramid_handlers.action(renderer="templates/home/about.pt")
    def about(self):
        return {}

    @pyramid_handlers.action(renderer="templates/home/contact.pt")
    def contact(self):
        return {}

    @pyramid_handlers.action(renderer="templates/home/credits.pt")

    def credits(self):