diff options
author | Simo Sorce <simo@redhat.com> | 2014-10-06 23:22:10 -0400 |
---|---|---|
committer | Patrick Uiterwijk <puiterwijk@redhat.com> | 2014-10-07 16:48:22 +0200 |
commit | 3f7e6358c02d0822c5fe1c2da72a3b32ffe12ec6 (patch) | |
tree | 197bfdcce9da276be5f6d6a125ad17836f49d406 /ipsilon/util | |
parent | 5fd2b52a5518864571afb9139074e4d314ec688c (diff) | |
download | ipsilon-3f7e6358c02d0822c5fe1c2da72a3b32ffe12ec6.tar.gz ipsilon-3f7e6358c02d0822c5fe1c2da72a3b32ffe12ec6.tar.xz ipsilon-3f7e6358c02d0822c5fe1c2da72a3b32ffe12ec6.zip |
Fix exposed functions
The Page util is supposed to intercept and enable exposed pages on
its own so that additional functions can be run in the generic __call__
Fix the code to check for the function argument correctly and use a
different argument than the standard cherrypy one for admin pages so
that we do actually land in the Page.__call__ all the time for those
pages.
Signed-off-by: Simo Sorce <simo@redhat.com>
Reviewed-by: Patrick Uiterwijk <puiterwijk@redhat.com>
Diffstat (limited to 'ipsilon/util')
-rwxr-xr-x | ipsilon/util/page.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ipsilon/util/page.py b/ipsilon/util/page.py index aa075de..1548d47 100755 --- a/ipsilon/util/page.py +++ b/ipsilon/util/page.py @@ -66,7 +66,7 @@ class Page(Log): 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(op, 'public_function', None): return op(*args[1:], **kwargs) else: if self._is_form_page: |