Resolves bugs #4679 and 4687, improved diagnostics

This commit is contained in:
GRiker 2010-01-26 05:06:50 -07:00
parent 76fbc5dc60
commit 29d6012760

View File

@ -333,11 +333,12 @@ class EPUB_MOBI(CatalogPlugin):
result = ''
if hundredsComponent and not tensComponent:
result = hundredsComponentString
if not hundredsComponent and tensComponent:
elif not hundredsComponent and tensComponent:
result = tensComponentString
if hundredsComponent and tensComponent:
elif hundredsComponent and tensComponent:
result = hundredsComponentString + " " + tensComponentString
else:
prints(" NumberToText.stringFromInt(): empty result translating %d" % intToTranslate)
return result
def numberTranslate(self):
@ -928,7 +929,7 @@ class EPUB_MOBI(CatalogPlugin):
unique_authors.append((current_author[0], current_author[1].title(),
books_by_current_author))
if self.verbose:
if False and self.verbose:
self.opts.log.info("\nfetchBooksByauthor(): %d unique authors" % len(unique_authors))
for author in unique_authors:
self.opts.log.info((u" %-50s %-25s %2d" % (author[0][0:45], author[1][0:20],