From 8e31d566ab19680ccb1e06da1611e43ffd46624b Mon Sep 17 00:00:00 2001 From: hardythe1 Date: Tue, 18 Feb 2014 12:29:36 +0530 Subject: changing to test the zip file --- tbc/views.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tbc/views.py b/tbc/views.py index 3eed4a8..e7c3171 100644 --- a/tbc/views.py +++ b/tbc/views.py @@ -330,7 +330,7 @@ def generateZip(book_id): notebooks = Chapters.objects.filter(book=book) for notebook in notebooks: files_to_zip.append(file_path+str(notebook.notebook)) - zip_subdir = book.title.strip() + zip_subdir = "PythonTBC" zipfile_name = "%s.zip" %zip_subdir s = StringIO.StringIO() zip_file = zipfile.ZipFile(s, 'w') -- cgit