diff --git a/core/epub.py b/core/epub.py index 8b0086e8..b452c558 100644 --- a/core/epub.py +++ b/core/epub.py @@ -13,5 +13,5 @@ def personalize(epub_file, acq): output.addpart(part, "datedcc_license.xhtml", "application/xhtml+xml", 1) #after title, we hope output.addmetadata('rights','%s after %s'%(acq.work.last_campaign().license_url,acq.work.last_campaign().cc_date)) output.close() - output.writetodisk('testfile2.epub') + #output.writetodisk('testfile2.epub') return output \ No newline at end of file diff --git a/core/models.py b/core/models.py index d7fa7531..5aebf796 100755 --- a/core/models.py +++ b/core/models.py @@ -296,13 +296,6 @@ class Acq(models.Model): 'epub': True, } personalized = personalize(self.work.ebookfiles()[0].file, self) - print personalized.mode - print personalized.info['spine'] - print personalized.filename.__class__.__name__ - personalized.filename.seek(0) - f=open('testfile.epub','w') - f.write(personalized.filename.read()) - f.close() personalized.filename.seek(0) self.watermarked = watermarker.platform(epubfile= personalized.filename, **params) self.save()