summaryrefslogtreecommitdiffstats
path: root/funcweb/funcweb/controllers.py
diff options
context:
space:
mode:
Diffstat (limited to 'funcweb/funcweb/controllers.py')
-rw-r--r--funcweb/funcweb/controllers.py12
1 files changed, 12 insertions, 0 deletions
diff --git a/funcweb/funcweb/controllers.py b/funcweb/funcweb/controllers.py
new file mode 100644
index 0000000..5206727
--- /dev/null
+++ b/funcweb/funcweb/controllers.py
@@ -0,0 +1,12 @@
+from turbogears import controllers, expose, flash
+# from model import *
+# import logging
+# log = logging.getLogger("funcweb.controllers")
+
+class Root(controllers.RootController):
+ @expose(template="funcweb.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())