X-Git-Url: http://git.cascardo.info/?p=cascardo%2Fipsilon.git;a=blobdiff_plain;f=ipsilon%2Futil%2Fpage.py;h=10f10aafcb3414a15b2f91bf83498669cd215b70;hp=aad91fcee2752090b514c9576df1a6b344a11eb8;hb=71edd1146556eecb9f9375da46313e94bf82874c;hpb=734323ca25765e6eecfa63e41b7f3ec12b084ca3 diff --git a/ipsilon/util/page.py b/ipsilon/util/page.py index aad91fc..10f10aa 100755 --- a/ipsilon/util/page.py +++ b/ipsilon/util/page.py @@ -17,6 +17,7 @@ # You should have received a copy of the GNU General Public License # along with this program. If not, see . +from ipsilon.util.log import Log from ipsilon.util.user import UserSession from urllib import unquote import cherrypy @@ -33,7 +34,7 @@ def admin_protect(fn): return check -class Page(object): +class Page(Log): def __init__(self, site, form=False): if 'template_env' not in site: raise ValueError('Missing template environment') @@ -96,10 +97,6 @@ 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)