codekasten/fotokiste/fotokiste/controllers.py

14 lines
464 B
Python
Raw Normal View History

import turbogears as tg
from turbogears import controllers, expose, flash
# from fotokiste import model
# import logging
# log = logging.getLogger("fotokiste.controllers")
class Root(controllers.RootController):
@expose(template="fotokiste.templates.welcome")
def index(self):
import time
# log.debug("Happy TurboGears Controller Responding For Duty")
flash("Your application is now running")
return dict(now=time.ctime())