remove more debugging stuff

pull/1/head
eric 2013-09-20 17:45:28 -04:00
parent aedf080965
commit c83f1f657d
2 changed files with 1 additions and 8 deletions

View File

@ -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

View File

@ -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()