<reponame>smitsgit/tptm<filename>Blue_Yellow/Blue_Yellow/controllers/home_controller.py
import pyramid_handlers
import Blue_Yellow.infrastructure.static_cache as cache
import Blue_Yellow.controllers.base_controller as base
from Blue_Yellow.infrastructure.supressor import supress

class HomeController(base.BaseController):

    @pyramid_handlers.action(renderer='templates/home/index.pt')
    def index(self):
        # remember what we need to return here is a dictionary
        return {'value': 'HOME'}

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

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

    @supress
    def dont_call_me_directly(self):
        print('What the fcuk , how can i get called from web')
        print('if i did database access , you are screwed')
