httpserver: Firewall do* methods.

This commit is contained in:
Valentin Lorentz 2013-07-07 13:26:13 +02:00
parent eff7d5e671
commit 4fffdbccd2

View File

@ -258,6 +258,15 @@ class SupyHTTPRequestHandler(BaseHTTPRequestHandler):
class SupyHTTPServerCallback(object):
"""This is a base class that should be overriden by any plugin that want
to have a Web interface."""
__metaclass__ = log.MetaFirewall
__firewalled__ = {'doGet': None,
'doPost': None,
'doHead': None,
'doPut': None,
'doDelete': None,
}
fullpath = False
name = "Unnamed plugin"
defaultResponse = _("""