Pull from driver-dev

This commit is contained in:
Kovid Goyal 2009-06-05 19:27:58 -07:00
commit 3011d1e002
3 changed files with 5 additions and 2 deletions

View File

@ -40,7 +40,7 @@ class PMLOutput(OutputFormatPlugin):
pmlmlizer = PMLMLizer(ignore_tables=opts.linearize_tables)
content = pmlmlizer.extract_content(oeb_book, opts)
with open(os.path.join(tdir, 'index.pml'), 'wb') as out:
out.write(content.encode(self.opts.output_encoding, 'replace'))
out.write(content.encode(opts.output_encoding, 'replace'))
self.write_images(oeb_book.manifest, tdir)

View File

@ -46,7 +46,7 @@ class TXTOutput(OutputFormatPlugin):
out_stream.seek(0)
out_stream.truncate()
out_stream.write(txt.encode(self.opts.output_encoding, 'replace'))
out_stream.write(txt.encode(opts.output_encoding, 'replace'))
if close:
out_stream.close()

View File

@ -257,6 +257,9 @@ class LocationView(QListView):
if 0 <= row and row <= 3:
self.model().location_changed(row)
def leaveEvent(self, event):
self.eject_button.hide()
def show_eject(self, location):
self.eject_button.hide()