diff options
author | Simo Sorce <simo@redhat.com> | 2014-04-20 22:00:08 -0400 |
---|---|---|
committer | Simo Sorce <simo@redhat.com> | 2014-04-21 00:05:05 -0400 |
commit | d7e4bbbf32e5bfae87bfa686fbb5f86efcb04ee1 (patch) | |
tree | 58b7404cba75694ae8a2976b4eca14d67e831ec2 /ipsilon/admin/common.py | |
parent | 37ef4b972ea240f085e7d29923aba70787ac1668 (diff) | |
download | ipsilon-d7e4bbbf32e5bfae87bfa686fbb5f86efcb04ee1.tar.gz ipsilon-d7e4bbbf32e5bfae87bfa686fbb5f86efcb04ee1.tar.xz ipsilon-d7e4bbbf32e5bfae87bfa686fbb5f86efcb04ee1.zip |
Convert all forms to use util.Page form support
This way all forms will get Referer checking automaticaly
Signed-off-by: Simo Sorce <simo@redhat.com>
Diffstat (limited to 'ipsilon/admin/common.py')
-rwxr-xr-x | ipsilon/admin/common.py | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/ipsilon/admin/common.py b/ipsilon/admin/common.py index 18b71ab..424103e 100755 --- a/ipsilon/admin/common.py +++ b/ipsilon/admin/common.py @@ -26,7 +26,7 @@ from ipsilon.util.page import admin_protect class AdminPluginPage(Page): def __init__(self, obj, site, parent): - super(AdminPluginPage, self).__init__(site) + super(AdminPluginPage, self).__init__(site, form=True) self._obj = obj self.title = '%s plugin' % obj.name self.url = '%s/%s' % (parent.url, obj.name) @@ -89,12 +89,6 @@ class AdminPluginPage(Page): menu=self.menu, action=self.url, options=self.plugin_config) - def root(self, *args, **kwargs): - cherrypy.log.error("method: %s" % cherrypy.request.method) - op = getattr(self, cherrypy.request.method, self.GET) - if callable(op): - return op(*args, **kwargs) - class Admin(Page): |