From ac9597ddcbfed317b9622e4d2e7145555e4e9873 Mon Sep 17 00:00:00 2001 From: Jason Gerard DeRose Date: Tue, 7 Oct 2008 23:01:11 -0600 Subject: Renamed webui-cherry.py, simple-server.py to lite-webui.py, lite-xmlrpc.py respectively --- lite-webui.py | 47 +++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 47 insertions(+) create mode 100755 lite-webui.py (limited to 'lite-webui.py') diff --git a/lite-webui.py b/lite-webui.py new file mode 100755 index 00000000..985a838b --- /dev/null +++ b/lite-webui.py @@ -0,0 +1,47 @@ +#!/usr/bin/python + +# 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 + +""" +A web-UI test server using cherrypy. +""" + +from cherrypy import expose, config, quickstart +from ipa_webui.templates import form, main +from ipa_webui import controller +from ipalib import api +from ipalib import load_plugins + + +api.finalize() + + +class root(object): + index = controller.Index(api, main) + + def __init__(self): + for cmd in api.Command(): + ctr = controller.Command(cmd, form) + setattr(self, cmd.name, ctr) + + + + + +quickstart(root()) -- cgit From e93c0455d48534afae347b40f0f5d10a7fab4e06 Mon Sep 17 00:00:00 2001 From: Jason Gerard DeRose Date: Wed, 22 Oct 2008 22:14:58 -0600 Subject: Added place-holder mod_python_webui.py module; cleaned up lite-* and mod_python_* docstrings --- lite-webui.py | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) (limited to 'lite-webui.py') diff --git a/lite-webui.py b/lite-webui.py index 985a838b..c910f83d 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()) -- cgit From fb441b2b1054de1ba0a99d01b9e1ea9700024aeb Mon Sep 17 00:00:00 2001 From: Jason Gerard DeRose Date: Wed, 22 Oct 2008 23:00:45 -0600 Subject: make-doc now includes the lite-* scripts, both with now check in __name__ == '__main__' before starting --- lite-webui.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'lite-webui.py') diff --git a/lite-webui.py b/lite-webui.py index c910f83d..ccef77ed 100755 --- a/lite-webui.py +++ b/lite-webui.py @@ -1,6 +1,7 @@ -#!/usr/bin/python +#!/usr/bin/env python -# Authors: Jason Gerard DeRose +# Authors: +# Jason Gerard DeRose # # Copyright (C) 2008 Red Hat # see file 'COPYING' for use and warranty information -- cgit From c8b3f6516513dc3e5948fe8280c3f159ad122684 Mon Sep 17 00:00:00 2001 From: Jason Gerard DeRose Date: Mon, 27 Oct 2008 00:41:37 -0600 Subject: Removed depreciated load_plugins.py module; changed all places where load_plugins was imported to now call api.load_plugins() --- lite-webui.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'lite-webui.py') diff --git a/lite-webui.py b/lite-webui.py index ccef77ed..e75e5d9d 100755 --- a/lite-webui.py +++ b/lite-webui.py @@ -27,9 +27,8 @@ from cherrypy import expose, config, quickstart from ipa_webui.templates import form, main from ipa_webui import controller from ipalib import api -from ipalib import load_plugins - +api.load_plugins() api.finalize() @@ -42,5 +41,5 @@ class root(object): setattr(self, cmd.name, ctr) -if __name__ == '__main__' +if __name__ == '__main__': quickstart(root()) -- cgit From 5c47261df596cc67410eb11db15bf0f8543e516f Mon Sep 17 00:00:00 2001 From: Jason Gerard DeRose Date: Sun, 4 Jan 2009 19:45:53 -0700 Subject: Renamed all references to 'ipa_webui' to 'ipawebui' --- lite-webui.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lite-webui.py') diff --git a/lite-webui.py b/lite-webui.py index e75e5d9d..74f6e0f7 100755 --- a/lite-webui.py +++ b/lite-webui.py @@ -24,8 +24,8 @@ In-tree Web UI using cherrypy. """ from cherrypy import expose, config, quickstart -from ipa_webui.templates import form, main -from ipa_webui import controller +from ipawebui.templates import form, main +from ipawebui import controller from ipalib import api api.load_plugins() -- cgit