Closed GoogleCodeExporter closed 9 years ago
Pardon me; that patch apparently didn't work. I'm not sure what I mixed up in
there, but I'll see if I can get it fixed and reupload when I get a moment.
Original comment by adam.buc...@gmail.com
on 15 Sep 2010 at 8:33
I forgot to test the filename against the string 'mimetype' rather than the
(filename, data) tuple. Oops. When this patch worked previously, it was by
sheer coincidence.
Again, note that there's a performance hit (the ebooks are larger) because all
files are stored uncompressed; there's a tradeoff between standard compliance
and compression using this version of Python's ZIP support, unless someone
knows a way around that.
Original comment by adam.buc...@gmail.com
on 16 Sep 2010 at 2:54
Attachments:
Adam, I apologize that I didn't realize you'd put patches here for a lot of
issues until after I'd already coded my own fixes.
In this particular case, my solution is a bit different and allows the chapter
files to be compressed while mimetype isn't.
Original comment by retiefj...@gmail.com
on 16 Oct 2010 at 1:58
That's a better fix than I had, in any case; I read that Python's zip module
didn't support per-file compression options until Python 2.7, but it never
occurred to me to close and reopen the zipfile using different compression
options each time.
Original comment by adam.buc...@gmail.com
on 16 Oct 2010 at 3:57
Original issue reported on code.google.com by
adam.buc...@gmail.com
on 15 Sep 2010 at 8:23Attachments: