summaryrefslogtreecommitdiffstats
path: root/ipsilon/util/page.py
diff options
context:
space:
mode:
authorSimo Sorce <simo@redhat.com>2014-02-24 19:58:10 -0500
committerSimo Sorce <simo@redhat.com>2014-02-24 20:30:06 -0500
commit0d81fcba2c57e9dfb2d55bbbcc1dfff3aaae25bd (patch)
tree1efe6002f4ddad1bd72bd6b7b63dc3235d7bcb91 /ipsilon/util/page.py
parent2a6309cd0f22951b288393f7b70816db94841897 (diff)
downloadipsilon-0d81fcba2c57e9dfb2d55bbbcc1dfff3aaae25bd.tar.gz
ipsilon-0d81fcba2c57e9dfb2d55bbbcc1dfff3aaae25bd.tar.xz
ipsilon-0d81fcba2c57e9dfb2d55bbbcc1dfff3aaae25bd.zip
Add _debug facility to the Page class
Use this instead of th misleading "_log" name. These really are just debugging statements not normal logging. Signed-off-by: Simo Sorce <simo@redhat.com>
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)