diff options
| author | Michael DeHaan <mdehaan@redhat.com> | 2008-11-20 11:34:29 -0500 |
|---|---|---|
| committer | Michael DeHaan <mdehaan@redhat.com> | 2008-11-20 11:34:29 -0500 |
| commit | 68ac68a382ed65735b77d1f420275c3640c8a18c (patch) | |
| tree | fb96d27e801868ab579064a7eaad25a07c9a7707 /scripts | |
| parent | 449e6d5d20c44a9198729b44f5fd099dbadc1b7c (diff) | |
| download | cobbler-68ac68a382ed65735b77d1f420275c3640c8a18c.tar.gz cobbler-68ac68a382ed65735b77d1f420275c3640c8a18c.tar.xz cobbler-68ac68a382ed65735b77d1f420275c3640c8a18c.zip | |
Peter Vreman's patch to clean up the web sidebar
Diffstat (limited to 'scripts')
| -rwxr-xr-x | scripts/index.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/scripts/index.py b/scripts/index.py index 160d0b51..ee2755b8 100755 --- a/scripts/index.py +++ b/scripts/index.py @@ -107,17 +107,19 @@ def handler(req): http_port = utils.parse_settings_lame("http_port",default="80") + mode = form.get('mode','index') + # instantiate a CobblerWeb object cw = CobblerWeb.CobblerWeb( apache = apache, token = token, base_url = "/cobbler/web/", + mode = mode, server = "http://127.0.0.1:%s/cobbler_api_rw" % http_port ) # check for a valid path/mode # handle invalid paths gracefully - mode = form.get('mode','index') if mode in cw.modes(): func = getattr( cw, mode ) content = func( **form ) |
