diff options
author | hardythe1 | 2014-06-18 18:02:56 +0530 |
---|---|---|
committer | hardythe1 | 2014-06-18 18:02:56 +0530 |
commit | cbb168abbe60c4a74adb311aceb668d14dd1ee5a (patch) | |
tree | f1508dffe806c52a36f13deb9f98d81254cc9e8b /tbc/views.py | |
parent | 866b1608fdad80434a5fcf311df4b8668f84a302 (diff) | |
download | Python-TBC-Interface-cbb168abbe60c4a74adb311aceb668d14dd1ee5a.tar.gz Python-TBC-Interface-cbb168abbe60c4a74adb311aceb668d14dd1ee5a.tar.bz2 Python-TBC-Interface-cbb168abbe60c4a74adb311aceb668d14dd1ee5a.zip |
disabling the links again
Diffstat (limited to 'tbc/views.py')
-rwxr-xr-x | tbc/views.py | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/tbc/views.py b/tbc/views.py index 1ef6870..a9e2167 100755 --- a/tbc/views.py +++ b/tbc/views.py @@ -65,6 +65,7 @@ def TemporarilyUnavailable(request): def Home(request): context = {} + return render_to_response('tbc/unavailable.html', context) images = [] if request.user.is_anonymous(): context['anonymous'] = True @@ -99,6 +100,7 @@ def Home(request): def UserLogin(request): context = {} + return render_to_response('tbc/unavailable.html', context) context.update(csrf(request)) if 'require_login' in request.GET: context['require_login'] = True @@ -139,6 +141,7 @@ def UserLogin(request): def UserRegister(request): context = {} + return render_to_response('tbc/unavailable.html', context) if request.method == 'POST': form = UserRegisterForm(request.POST) if form.is_valid(): @@ -158,6 +161,7 @@ def UserRegister(request): def UserProfile(request): context = {} + return render_to_response('tbc/unavailable.html', context) user = request.user if user.is_authenticated(): if request.method == 'POST': @@ -192,6 +196,7 @@ def UserLogout(request): def ForgotPassword(request): context = {} + return render_to_response('tbc/unavailable.html', context) user_emails = [] context.update(csrf(request)) if request.user.is_anonymous(): @@ -229,6 +234,7 @@ def ForgotPassword(request): def UpdatePassword(request): context = {} + return render_to_response('tbc/unavailable.html', context) user = request.user context.update(csrf(request)) if user.is_authenticated(): @@ -266,6 +272,7 @@ def UpdatePassword(request): def SubmitBook(request): context = {} + return render_to_response('tbc/unavailable.html', context) curr_user = request.user if request.method == 'POST': form = BookForm(request.POST) @@ -294,6 +301,7 @@ def SubmitBook(request): def UpdateBook(request): context = {} + return render_to_response('tbc/unavailable.html', context) current_user = request.user user_profile = Profile.objects.get(user=current_user) try: @@ -335,6 +343,7 @@ def UpdateBook(request): def ContentUpload(request, book_id=None): context = {} + return render_to_response('tbc/unavailable.html', context) user = request.user curr_book = Book.objects.get(id=book_id) if request.method == 'POST': @@ -374,6 +383,7 @@ def ContentUpload(request, book_id=None): def UpdateContent(request, book_id=None): 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) @@ -443,6 +453,7 @@ def GetZip(request, book_id=None): def BookDetails(request, book_id=None): context = {} + return render_to_response('tbc/unavailable.html', context) if request.user.is_anonymous(): context['anonymous'] = True else: @@ -461,6 +472,7 @@ def BookDetails(request, book_id=None): def BookReview(request, book_id=None): context = {} + return render_to_response('tbc/unavailable.html', context) if is_reviewer(request.user): if book_id: book = Book.objects.get(id=book_id) @@ -488,6 +500,7 @@ def BookReview(request, book_id=None): def ApproveBook(request, book_id=None): context = {} + return render_to_response('tbc/unavailable.html', context) user = request.user if is_reviewer(request.user): if request.method == 'POST' and request.POST['approve_notify'] == "approve": @@ -541,6 +554,7 @@ def ApproveBook(request, book_id=None): def NotifyChanges(request, book_id=None): context = {} + return render_to_response('tbc/unavailable.html', context) if is_reviewer(request.user): book = Book.objects.get(id=book_id) if request.method == 'POST': @@ -565,6 +579,7 @@ def NotifyChanges(request, book_id=None): def BrowseBooks(request): context = {} + return render_to_response('tbc/unavailable.html', context) category = None images = [] book_images = [] @@ -598,6 +613,7 @@ def BrowseBooks(request): def ConvertNotebook(request, notebook_path=None): 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 @@ -619,6 +635,7 @@ def ConvertNotebook(request, notebook_path=None): def CompletedBooks(request): context = {} + return render_to_response('tbc/unavailable.html', context) images = [] if request.user.is_anonymous(): context['anonymous'] = True @@ -632,6 +649,7 @@ def CompletedBooks(request): def BooksUnderProgress(request): context = {} + return render_to_response('tbc/unavailable.html', context) images = [] if request.user.is_anonymous(): context['anonymous'] = True |