diff options
author | Ken Raffenetti <raffenet@mcs.anl.gov> | 2006-10-20 21:23:10 +0000 |
---|---|---|
committer | Ken Raffenetti <raffenet@mcs.anl.gov> | 2006-10-20 21:23:10 +0000 |
commit | faff7dffe7b5fd488598033dd9ae5042f0e3ebf4 (patch) | |
tree | 5155992b886219228448c7b0a99cc90bf8d57e8a /src/lib/Server/Hostbase/hostbase | |
parent | 90435c82444db3fa6977a95fabee7718d6808ebc (diff) | |
download | bcfg2-faff7dffe7b5fd488598033dd9ae5042f0e3ebf4.tar.gz bcfg2-faff7dffe7b5fd488598033dd9ae5042f0e3ebf4.tar.bz2 bcfg2-faff7dffe7b5fd488598033dd9ae5042f0e3ebf4.zip |
fixed redirect after removing from dns edit page
git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@2451 ce84e21b-d406-0410-9b95-82705330c041
Diffstat (limited to 'src/lib/Server/Hostbase/hostbase')
-rw-r--r-- | src/lib/Server/Hostbase/hostbase/views.py | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/src/lib/Server/Hostbase/hostbase/views.py b/src/lib/Server/Hostbase/hostbase/views.py index 495f1e8ac..b37d5df83 100644 --- a/src/lib/Server/Hostbase/hostbase/views.py +++ b/src/lib/Server/Hostbase/hostbase/views.py @@ -51,6 +51,9 @@ dispatch = {'mac_addr':'i.mac_addr LIKE \'%%%%%s%%%%\'', ## return HttpResponse(str(t)) +def login(request): + return render_to_response('login.html', {}) + def search(request): """Search for hosts in the database If more than one field is entered, logical AND is used @@ -78,8 +81,7 @@ def search(request): querystring += ' AND ' querystring += "h.%s LIKE \'%%%%%s%%%%\'" % (field, request.POST[field]) _and = True - - + if not _and: cursor = connection.cursor() cursor.execute("""SELECT hostname, id, status @@ -350,7 +352,7 @@ def confirm(request, item, item_id, host_id=None, name_id=None, zone_id=None): address = ZoneAddress.objects.get(id=item_id) Zone.objects.get(id=zone_id).addresses.remove(address) if item == 'cname' or item == 'mx' or item == 'name': - return HttpResponseRedirect('/hostbase/%s/dnsedit' % host_id) + return HttpResponseRedirect('/hostbase/%s/dns/edit' % host_id) elif item == 'nameserver' or item == 'zonemx' or item == 'address': return HttpResponseRedirect('/hostbase/zones/%s/edit' % zone_id) else: |