summaryrefslogtreecommitdiff
path: root/tbc/views.py
diff options
context:
space:
mode:
authorhardythe12014-06-16 16:56:29 +0530
committerhardythe12014-06-16 16:56:29 +0530
commit8358d1c40044578671633d7286331221324ab9a6 (patch)
tree42f660a57fe4bf7d52ec4dd075a2d4a33d220561 /tbc/views.py
parent2bcd478ba83d3e67da4d9a2bdde9fb90c27716df (diff)
downloadPython-TBC-Interface-8358d1c40044578671633d7286331221324ab9a6.tar.gz
Python-TBC-Interface-8358d1c40044578671633d7286331221324ab9a6.tar.bz2
Python-TBC-Interface-8358d1c40044578671633d7286331221324ab9a6.zip
disbling link for the time being again for copyright issues
Diffstat (limited to 'tbc/views.py')
-rwxr-xr-xtbc/views.py38
1 files changed, 19 insertions, 19 deletions
diff --git a/tbc/views.py b/tbc/views.py
index 7f5d2ad..00ec5f8 100755
--- a/tbc/views.py
+++ b/tbc/views.py
@@ -66,7 +66,7 @@ def TemporarilyUnavailable(request):
def Home(request):
context = {}
- return render_to_response('tbc/unavailable.html', context)
+ return render_to_response('tbc/unavailable.html', context)
images = []
if request.user.is_anonymous():
context['anonymous'] = True
@@ -101,7 +101,7 @@ def Home(request):
def UserLogin(request):
context = {}
- return render_to_response('tbc/unavailable.html', context)
+ return render_to_response('tbc/unavailable.html', context)
context.update(csrf(request))
if 'require_login' in request.GET:
context['require_login'] = True
@@ -141,7 +141,7 @@ def UserLogin(request):
def UserRegister(request):
- return render_to_response('tbc/unavailable.html', context)
+ return render_to_response('tbc/unavailable.html', context)
if request.method == 'POST':
form = UserRegisterForm(request.POST)
if form.is_valid():
@@ -161,7 +161,7 @@ def UserRegister(request):
def UserProfile(request):
- return render_to_response('tbc/unavailable.html', context)
+ return render_to_response('tbc/unavailable.html', context)
user = request.user
if user.is_authenticated():
if request.method == 'POST':
@@ -190,7 +190,7 @@ def UserProfile(request):
def UserLogout(request):
- return render_to_response('tbc/unavailable.html', context)
+ return render_to_response('tbc/unavailable.html', context)
user = request.user
if user.is_authenticated() and user.is_active:
logout(request)
@@ -198,7 +198,7 @@ def UserLogout(request):
def ForgotPassword(request):
- return render_to_response('tbc/unavailable.html', context)
+ return render_to_response('tbc/unavailable.html', context)
context = {}
user_emails = []
context.update(csrf(request))
@@ -236,7 +236,7 @@ def ForgotPassword(request):
def UpdatePassword(request):
- return render_to_response('tbc/unavailable.html', context)
+ return render_to_response('tbc/unavailable.html', context)
user = request.user
context = {}
context.update(csrf(request))
@@ -274,7 +274,7 @@ def UpdatePassword(request):
def SubmitBook(request):
- return render_to_response('tbc/unavailable.html', context)
+ return render_to_response('tbc/unavailable.html', context)
curr_user = request.user
context = {}
if request.method == 'POST':
@@ -303,7 +303,7 @@ def SubmitBook(request):
def UpdateBook(request):
- return render_to_response('tbc/unavailable.html', context)
+ return render_to_response('tbc/unavailable.html', context)
current_user = request.user
user_profile = Profile.objects.get(user=current_user)
try:
@@ -345,7 +345,7 @@ def UpdateBook(request):
def ContentUpload(request, book_id=None):
- return render_to_response('tbc/unavailable.html', context)
+ return render_to_response('tbc/unavailable.html', context)
user = request.user
curr_book = Book.objects.get(id=book_id)
if request.method == 'POST':
@@ -385,7 +385,7 @@ def ContentUpload(request, book_id=None):
def UpdateContent(request, book_id=None):
- return render_to_response('tbc/unavailable.html', context)
+ return render_to_response('tbc/unavailable.html', context)
user = request.user
current_book = Book.objects.get(id=book_id)
chapters_to_update = Chapters.objects.filter(book=current_book)
@@ -455,7 +455,7 @@ def GetZip(request, book_id=None):
def BookDetails(request, book_id=None):
- return render_to_response('tbc/unavailable.html', context)
+ return render_to_response('tbc/unavailable.html', context)
context = {}
if request.user.is_anonymous():
context['anonymous'] = True
@@ -474,7 +474,7 @@ def BookDetails(request, book_id=None):
def BookReview(request, book_id=None):
- return render_to_response('tbc/unavailable.html', context)
+ return render_to_response('tbc/unavailable.html', context)
context = {}
if is_reviewer(request.user):
if book_id:
@@ -502,7 +502,7 @@ def BookReview(request, book_id=None):
def ApproveBook(request, book_id=None):
- return render_to_response('tbc/unavailable.html', context)
+ return render_to_response('tbc/unavailable.html', context)
user = request.user
context = {}
if is_reviewer(request.user):
@@ -555,7 +555,7 @@ def ApproveBook(request, book_id=None):
def NotifyChanges(request, book_id=None):
- return render_to_response('tbc/unavailable.html', context)
+ return render_to_response('tbc/unavailable.html', context)
context = {}
if is_reviewer(request.user):
book = Book.objects.get(id=book_id)
@@ -580,7 +580,7 @@ def NotifyChanges(request, book_id=None):
def BrowseBooks(request):
- return render_to_response('tbc/unavailable.html', context)
+ return render_to_response('tbc/unavailable.html', context)
context = {}
category = None
images = []
@@ -614,7 +614,7 @@ def BrowseBooks(request):
def ConvertNotebook(request, notebook_path=None):
- return render_to_response('tbc/unavailable.html', context)
+ return render_to_response('tbc/unavailable.html', context)
path = os.path.abspath(os.path.dirname(__file__))
path = path+"/static/uploads/"
path = path+notebook_path
@@ -635,7 +635,7 @@ def ConvertNotebook(request, notebook_path=None):
def CompletedBooks(request):
- return render_to_response('tbc/unavailable.html', context)
+ return render_to_response('tbc/unavailable.html', context)
context = {}
images = []
if request.user.is_anonymous():
@@ -649,7 +649,7 @@ def CompletedBooks(request):
def BooksUnderProgress(request):
- return render_to_response('tbc/unavailable.html', context)
+ return render_to_response('tbc/unavailable.html', context)
context = {}
images = []
if request.user.is_anonymous():