diff options
author | Rob Crittenden <rcritten@redhat.com> | 2012-02-29 16:12:58 -0500 |
---|---|---|
committer | Rob Crittenden <rcritten@redhat.com> | 2012-02-29 21:04:10 -0500 |
commit | 5e01ed13255c972e2f63724a5f3be15474850ff4 (patch) | |
tree | 8831da11b230300c29649a33927679c3227d88e7 /ipaserver/rpcserver.py | |
parent | 73249140fce64e56ddf5cd70441804a627b0cc34 (diff) | |
download | freeipa-5e01ed13255c972e2f63724a5f3be15474850ff4.tar.gz freeipa-5e01ed13255c972e2f63724a5f3be15474850ff4.tar.xz freeipa-5e01ed13255c972e2f63724a5f3be15474850ff4.zip |
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
Diffstat (limited to 'ipaserver/rpcserver.py')
-rw-r--r-- | ipaserver/rpcserver.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/ipaserver/rpcserver.py b/ipaserver/rpcserver.py index 3ada8b48f..147707b35 100644 --- a/ipaserver/rpcserver.py +++ b/ipaserver/rpcserver.py @@ -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. |