summaryrefslogtreecommitdiff
path: root/wiki/views.py
diff options
context:
space:
mode:
authoreliott <eliott@cactuswax.net>2008-04-09 22:43:07 -0700
committereliott <eliott@cactuswax.net>2008-04-09 22:43:07 -0700
commit751ac09698cb58afddb3e726a29438646777e877 (patch)
treed26e51fa37ca5be6ed85826644f8d87cf2ce51dd /wiki/views.py
parentca033e91bf5e6c22369447a0f1c7fdd4e497b736 (diff)
Removed login_required from the individual views.
Not entire dev site requires login.
Diffstat (limited to 'wiki/views.py')
-rw-r--r--wiki/views.py5
1 files changed, 0 insertions, 5 deletions
diff --git a/wiki/views.py b/wiki/views.py
index 4c9f732f..90378346 100644
--- a/wiki/views.py
+++ b/wiki/views.py
@@ -2,11 +2,9 @@
# Based on code from http://e-scribe.com/news/210
#
from django.http import HttpResponse, HttpResponseRedirect
-from django.contrib.auth.decorators import login_required
from archweb_dev.main.utils import render_response
from archweb_dev.main.models import Wikipage
-@login_required
def index(request):
"""Return a list of all wiki pages"""
pages = Wikipage.objects.all().order_by('title')
@@ -16,7 +14,6 @@ def main(request):
"""Return the Index wiki page"""
return HttpResponseRedirect("/wiki/WikiIndex/")
-@login_required
def page(request, title):
"""Display page, or redirect to root if page doesn't exist yet"""
try:
@@ -25,7 +22,6 @@ def page(request, title):
except Wikipage.DoesNotExist:
return HttpResponseRedirect("/wiki/edit/%s/" % title)
-@login_required
def edit(request, title):
"""Process submitted page edits (POST) or display editing form (GET)"""
if request.POST:
@@ -48,7 +44,6 @@ def edit(request, title):
page.body = "<!-- Enter content here -->"
return render_response(request, 'wiki/edit.html', {'page':page})
-@login_required
def delete(request):
"""Delete a page"""
if request.POST: