remove more debugging stuff
parent
aedf080965
commit
c83f1f657d
|
@ -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
|
|
@ -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()
|
||||
|
|
Loading…
Reference in New Issue