summaryrefslogtreecommitdiffstats
path: root/src/lib/Server/Hostbase/hostbase/views.py
diff options
context:
space:
mode:
authorDavid Dahl <dahl@mcs.anl.gov>2006-10-31 21:58:21 +0000
committerDavid Dahl <dahl@mcs.anl.gov>2006-10-31 21:58:21 +0000
commit5b2b4bc317d6a533ee19758132863a0fcf5ce245 (patch)
tree719f572f517e4517b325264d77f68d56d2ef9131 /src/lib/Server/Hostbase/hostbase/views.py
parente8ee28690e839cf962f70103a28dc54f9f16c365 (diff)
downloadbcfg2-5b2b4bc317d6a533ee19758132863a0fcf5ce245.tar.gz
bcfg2-5b2b4bc317d6a533ee19758132863a0fcf5ce245.tar.bz2
bcfg2-5b2b4bc317d6a533ee19758132863a0fcf5ce245.zip
slight tweaks to logout login and index
git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@2463 ce84e21b-d406-0410-9b95-82705330c041
Diffstat (limited to 'src/lib/Server/Hostbase/hostbase/views.py')
-rw-r--r--src/lib/Server/Hostbase/hostbase/views.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/lib/Server/Hostbase/hostbase/views.py b/src/lib/Server/Hostbase/hostbase/views.py
index b88083c94..748a84471 100644
--- a/src/lib/Server/Hostbase/hostbase/views.py
+++ b/src/lib/Server/Hostbase/hostbase/views.py
@@ -7,6 +7,7 @@ __revision__ = "$Revision: $"
from django.http import HttpResponse, HttpResponseRedirect
from django.contrib.auth.decorators import login_required
+from django.contrib.auth import logout
from Hostbase.hostbase.models import *
from datetime import date
@@ -53,6 +54,11 @@ dispatch = {'mac_addr':'i.mac_addr LIKE \'%%%%%s%%%%\'',
## t.failures = False
## return HttpResponse(str(t))
+def index(request):
+ """rediredct to /hostbase/"""
+ return render_to_response('index.html',
+ {})
+
def search(request):
"""Search for hosts in the database
If more than one field is entered, logical AND is used