From 0d81fcba2c57e9dfb2d55bbbcc1dfff3aaae25bd Mon Sep 17 00:00:00 2001 From: Simo Sorce Date: Mon, 24 Feb 2014 19:58:10 -0500 Subject: 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 --- ipsilon/util/page.py | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'ipsilon/util/page.py') 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) -- cgit