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): class SupyHTTPServerCallback(object):
"""This is a base class that should be overriden by any plugin that want """This is a base class that should be overriden by any plugin that want
to have a Web interface.""" to have a Web interface."""
__metaclass__ = log.MetaFirewall
__firewalled__ = {'doGet': None,
'doPost': None,
'doHead': None,
'doPut': None,
'doDelete': None,
}
fullpath = False fullpath = False
name = "Unnamed plugin" name = "Unnamed plugin"
defaultResponse = _(""" defaultResponse = _("""