Mercurial > genshi > mirror
view examples/turbogears/markuptest/controllers.py @ 38:ee669cb9cccc trunk
Fix for #2 (incorrect context node in path expressions). Still some paths that produce incorrect results, but the common case seems to work now.
author | cmlenz |
---|---|
date | Mon, 03 Jul 2006 11:28:13 +0000 |
parents | 49364e784c47 |
children | 64ff134868c4 |
line wrap: on
line source
import logging import cherrypy import turbogears from turbogears import controllers, expose, validate, redirect from markuptest import json log = logging.getLogger("markuptest.controllers") class Root(controllers.RootController): @expose(template="markuptest.templates.welcome") def index(self): import time log.debug("Happy TurboGears Controller Responding For Duty") return dict(now=time.ctime())