From 3f7e6358c02d0822c5fe1c2da72a3b32ffe12ec6 Mon Sep 17 00:00:00 2001 From: Simo Sorce Date: Mon, 6 Oct 2014 23:22:10 -0400 Subject: 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 Reviewed-by: Patrick Uiterwijk --- ipsilon/providers/saml2/admin.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'ipsilon/providers/saml2/admin.py') diff --git a/ipsilon/providers/saml2/admin.py b/ipsilon/providers/saml2/admin.py index b8c8223..7e14312 100755 --- a/ipsilon/providers/saml2/admin.py +++ b/ipsilon/providers/saml2/admin.py @@ -274,7 +274,7 @@ class SPAdminPage(Page): self.parent.del_sp(self.sp.name) self.sp.permanently_delete() return self.parent.root() - delete.exposed = True + delete.public_function = True class AdminPage(Page): -- cgit