mirror of
https://salsa.debian.org/freeipa-team/freeipa.git
synced 2025-02-25 18:55:28 -06:00
subclass HTTP_Status from plugable.Plugin, fix not_found tests
HTTP_Status needs to subclass from Plugin because it does its own logging. Add tests for other methods of HTTP_Status
This commit is contained in:
@@ -26,6 +26,7 @@ Also see the `ipalib.rpc` module.
|
||||
from cgi import parse_qs
|
||||
from xml.sax.saxutils import escape
|
||||
from xmlrpclib import Fault
|
||||
from ipalib import plugable
|
||||
from ipalib.backend import Executioner
|
||||
from ipalib.errors import PublicError, InternalError, CommandError, JSONError, ConversionError, CCacheError, RefererError, InvalidSessionPassword
|
||||
from ipalib.request import context, Connection, destroy_context
|
||||
@@ -96,7 +97,7 @@ _unauthorized_template = """<html>
|
||||
</body>
|
||||
</html>"""
|
||||
|
||||
class HTTP_Status(object):
|
||||
class HTTP_Status(plugable.Plugin):
|
||||
def not_found(self, environ, start_response, url, message):
|
||||
"""
|
||||
Return a 404 Not Found error.
|
||||
|
||||
Reference in New Issue
Block a user