From e93c0455d48534afae347b40f0f5d10a7fab4e06 Mon Sep 17 00:00:00 2001 From: Jason Gerard DeRose Date: Wed, 22 Oct 2008 22:14:58 -0600 Subject: [PATCH] Added place-holder mod_python_webui.py module; cleaned up lite-* and mod_python_* docstrings --- ipa_server/mod_python_xmlrpc.py | 6 +++++- ipa_webui/mod_python_webui.py | 22 ++++++++++++++++++++++ lite-webui.py | 8 +++----- lite-xmlrpc.py | 4 ++++ 4 files changed, 34 insertions(+), 6 deletions(-) create mode 100644 ipa_webui/mod_python_webui.py diff --git a/ipa_server/mod_python_xmlrpc.py b/ipa_server/mod_python_xmlrpc.py index 8f415e83c..18bedec1e 100644 --- a/ipa_server/mod_python_xmlrpc.py +++ b/ipa_server/mod_python_xmlrpc.py @@ -5,7 +5,7 @@ # # IPA is free software; you can redistribute it and/or # modify it under the terms of the GNU Lesser General Public -# License as published by the Free Software Foundation; +# License as published by the Free Software Foundation; # version 2.1 of the License. # # This software is distributed in the hope that it will be useful, @@ -23,6 +23,10 @@ # Authors: # Rob Crittenden +""" +Production XML-RPC server using mod_python. +""" + import sys diff --git a/ipa_webui/mod_python_webui.py b/ipa_webui/mod_python_webui.py new file mode 100644 index 000000000..6a889fce6 --- /dev/null +++ b/ipa_webui/mod_python_webui.py @@ -0,0 +1,22 @@ +# Authors: +# Jason Gerard DeRose +# +# Copyright (C) 2008 Red Hat +# see file 'COPYING' for use and warranty information +# +# This program is free software; you can redistribute it and/or +# modify it under the terms of the GNU General Public License as +# published by the Free Software Foundation; version 2 only +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program; if not, write to the Free Software +# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA + +""" +Production Web UI using mod_python. +""" diff --git a/lite-webui.py b/lite-webui.py index 985a838b0..c910f83d1 100755 --- a/lite-webui.py +++ b/lite-webui.py @@ -19,7 +19,7 @@ # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA """ -A web-UI test server using cherrypy. +In-tree Web UI using cherrypy. """ from cherrypy import expose, config, quickstart @@ -41,7 +41,5 @@ class root(object): setattr(self, cmd.name, ctr) - - - -quickstart(root()) +if __name__ == '__main__' + quickstart(root()) diff --git a/lite-xmlrpc.py b/lite-xmlrpc.py index 86df68156..49f3a2ae1 100755 --- a/lite-xmlrpc.py +++ b/lite-xmlrpc.py @@ -15,6 +15,10 @@ import ipalib.load_plugins from ipalib.util import xmlrpc_unmarshal import traceback +""" +In-tree XML-RPC server using SimpleXMLRPCServer. +""" + PORT=8888 class StoppableXMLRPCServer(SimpleXMLRPCServer.SimpleXMLRPCServer):