From 89e31c3fb3e8e8d0133038ebb4c64eda46f2ba37 Mon Sep 17 00:00:00 2001 From: hardythe1 Date: Tue, 12 Nov 2013 11:04:48 +0530 Subject: changing automatic push view to add permissions --- tbc/templates/tbc/book-review-details.html | 4 ++-- tbc/views.py | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/tbc/templates/tbc/book-review-details.html b/tbc/templates/tbc/book-review-details.html index 704441f..5ea3f5b 100644 --- a/tbc/templates/tbc/book-review-details.html +++ b/tbc/templates/tbc/book-review-details.html @@ -13,7 +13,7 @@
    {% for chapter in chapters %} -
  1. {{ chapter.name }} +
  2. {{ chapter.name }} {% endfor %}

@@ -28,7 +28,7 @@
Author:   {{ book.author }} -
Publisher:   {{ book.publisher }} +
Publisher:   {{ book.publisher_place }}
ISBN:   {{ book.isbn }}
Contributor:   {{ book.contributor.user.first_name }} {{ book.contributor.user.last_name }}
Email:   {{ book.contributor.user.email }}
diff --git a/tbc/views.py b/tbc/views.py index 1e5d0cf..696b1e8 100644 --- a/tbc/views.py +++ b/tbc/views.py @@ -254,7 +254,7 @@ def ApproveBook(request, book_id=None): file_path = os.path.abspath(os.path.dirname(__file__)) zip_path = "/".join(file_path.split("/")[1:-2]) zip_path = "/"+zip_path+"/Python-Textbook-Companions/" - file_path = file_path+"/static/uploads/" + file_path = file_path+"/uploads/" directory = file_path+book.contributor.user.first_name os.chmod(directory, 0777) os.chdir(directory) -- cgit