summaryrefslogtreecommitdiff
path: root/tbc/views.py
diff options
context:
space:
mode:
authorhardythe12014-06-17 12:55:16 +0530
committerhardythe12014-06-17 12:55:16 +0530
commit81b8051c334f2da986cb588f9c496626f89fbb88 (patch)
treed0caee33dc819f6e000a7fc9a3fc2cc7c9e63471 /tbc/views.py
parent7294076a0b0b47a29d5148b56e0be02c6f17e986 (diff)
downloadPython-TBC-Interface-81b8051c334f2da986cb588f9c496626f89fbb88.tar.gz
Python-TBC-Interface-81b8051c334f2da986cb588f9c496626f89fbb88.tar.bz2
Python-TBC-Interface-81b8051c334f2da986cb588f9c496626f89fbb88.zip
modifying copy command to take book names with any special characters
Diffstat (limited to 'tbc/views.py')
-rwxr-xr-xtbc/views.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/tbc/views.py b/tbc/views.py
index 0a38ea1..9bfbcc5 100755
--- a/tbc/views.py
+++ b/tbc/views.py
@@ -517,7 +517,7 @@ def ApproveBook(request, book_id=None):
fp.write("Isbn: "+book.isbn+"\n")
fp.write("Edition: "+book.edition)
fp.close()
- x = shutil.copytree(book_title, copy_path+book_title)
+ os.popen("cp -r '"+book_title+"' '"+copy_path+"'")
subject = "Python-TBC: Book Completion"
message = "Hi "+book.contributor.user.first_name+",\n"+\
"Congratulations !\n"+\