purnimagupta / threepress

Automatically exported from code.google.com/p/threepress
Other
0 stars 0 forks source link

Multiple itemref elements which point to the same idref result in duplicate resource entries #113

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
Bookworm ends up complaining:

MultipleObjectsReturned: get() returned more than one HTMLFile -- it
returned 2! Lookup parameters were {'archive': <EpubArchive: Making Things
Happen by Scott Berkun (MakingThingsHappen.epub)>, 'filename': u'ch12.html'}

Original issue reported on code.google.com by liza31337@gmail.com on 19 Feb 2009 at 9:44

GoogleCodeExporter commented 8 years ago
BW should do two things:

- Not create the duplicate in the first place
- For existing books with this problem, not use get() but instead filter and 
return
the first time

Original comment by liza31337@gmail.com on 19 Feb 2009 at 9:45

GoogleCodeExporter commented 8 years ago
For this book, the offending id is:

    <itemref xmlns="http://www.idpf.org/2007/opf" idref="id1010343"/>

Original comment by liza31337@gmail.com on 19 Feb 2009 at 9:46

GoogleCodeExporter commented 8 years ago
Fixed in revision 557

Original comment by liza31337@gmail.com on 19 Feb 2009 at 10:33