Fix exposed functions
authorSimo Sorce <simo@redhat.com>
Tue, 7 Oct 2014 03:22:10 +0000 (23:22 -0400)
committerPatrick Uiterwijk <puiterwijk@redhat.com>
Tue, 7 Oct 2014 14:48:22 +0000 (16:48 +0200)
commit3f7e6358c02d0822c5fe1c2da72a3b32ffe12ec6
tree197bfdcce9da276be5f6d6a125ad17836f49d406
parent5fd2b52a5518864571afb9139074e4d314ec688c
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>
ipsilon/admin/info.py
ipsilon/admin/login.py
ipsilon/admin/providers.py
ipsilon/providers/saml2/admin.py
ipsilon/util/page.py