view examples/turbogears/markuptest/controllers.py @ 5:dbb08edbc615 trunk

Improved `py:attrs` directive so that it removes existing attributes if they evaluate to `None` (AFAICT matching Kid behavior).
author cmlenz
date Sat, 03 Jun 2006 15:29:27 +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())
Copyright (C) 2012-2017 Edgewall Software