diff options
Diffstat (limited to 'ipsilon/util/page.py')
-rwxr-xr-x | ipsilon/util/page.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/ipsilon/util/page.py b/ipsilon/util/page.py index 5c843af..d8ce09c 100755 --- a/ipsilon/util/page.py +++ b/ipsilon/util/page.py @@ -20,9 +20,11 @@ from ipsilon.util import user import cherrypy + def protect(): user.UserSession().remote_login() + class Page(object): def __init__(self, site): if not 'template_env' in site: @@ -38,7 +40,7 @@ class Page(object): if len(args) > 0: op = getattr(self, args[0], None) - if callable(op) and getattr(self, args[0]+'.exposed', None): + if callable(op) and getattr(self, args[0] + '.exposed', None): return op(*args[1:], **kwargs) else: op = getattr(self, 'root', None) |