diff options
author | hardythe1 | 2014-02-18 12:29:36 +0530 |
---|---|---|
committer | hardythe1 | 2014-02-18 12:29:36 +0530 |
commit | 8e31d566ab19680ccb1e06da1611e43ffd46624b (patch) | |
tree | 1e086fa3615f4fa47a6dcd883c5f0ff9aadc2c44 | |
parent | 5bce27f3c8d9408042edce760e77f413d839d822 (diff) | |
download | Python-TBC-Interface-8e31d566ab19680ccb1e06da1611e43ffd46624b.tar.gz Python-TBC-Interface-8e31d566ab19680ccb1e06da1611e43ffd46624b.tar.bz2 Python-TBC-Interface-8e31d566ab19680ccb1e06da1611e43ffd46624b.zip |
changing to test the zip file
-rw-r--r-- | tbc/views.py | 2 |
1 files changed, 1 insertions, 1 deletions
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') |