summaryrefslogtreecommitdiffstats
path: root/ipsilon/util/page.py
diff options
context:
space:
mode:
Diffstat (limited to 'ipsilon/util/page.py')
-rwxr-xr-xipsilon/util/page.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/ipsilon/util/page.py b/ipsilon/util/page.py
index 2cdca1c..56a6463 100755
--- a/ipsilon/util/page.py
+++ b/ipsilon/util/page.py
@@ -62,6 +62,10 @@ class Page(object):
m.update(kwargs)
return t.render(**m)
+ def _debug(self, fact):
+ if cherrypy.config.get('debug', False):
+ cherrypy.log(fact)
+
def default(self, *args, **kwargs):
raise cherrypy.HTTPError(404)