Revert boox driver

This commit is contained in:
Charles Haley 2010-07-08 18:30:19 +01:00
parent 4c65b92cad
commit 0b4e09180d

View File

@ -119,25 +119,22 @@ class BOOX(HANLINV3):
MAIN_MEMORY_VOLUME_LABEL = 'BOOX Internal Memory' MAIN_MEMORY_VOLUME_LABEL = 'BOOX Internal Memory'
STORAGE_CARD_VOLUME_LABEL = 'BOOX Storage Card' STORAGE_CARD_VOLUME_LABEL = 'BOOX Storage Card'
EBOOK_DIR_MAIN = ['MyBooks', 'MyBooks'] EBOOK_DIR_MAIN = ['MyBooks']
EXTRA_CUSTOMIZATION_MESSAGE = _('Directories to send e-books to on the device. ' EXTRA_CUSTOMIZATION_MESSAGE = _('Comma separated list of directories to '
'The first directory is used for main memory. ' 'send e-books to on the device. The first one that exists will '
'The second is used for cards.') 'be used.')
EXTRA_CUSTOMIZATION_DEFAULT = ', '.join(EBOOK_DIR_MAIN) EXTRA_CUSTOMIZATION_DEFAULT = ', '.join(EBOOK_DIR_MAIN)
# EBOOK_DIR_CARD_A = 'MyBooks' ## Am quite sure we need this.
def post_open_callback(self): def post_open_callback(self):
opts = self.settings() opts = self.settings()
dirs = opts.extra_customization dirs = opts.extra_customization
if not dirs: if not dirs:
dirs = self.EBOOK_DIR_MAIN dirs = self.EBOOK_DIR_MAIN
else: else:
# will have at least one item ...
dirs = [x.strip() for x in dirs.split(',')] dirs = [x.strip() for x in dirs.split(',')]
self.EBOOK_DIR_MAIN = dirs[0] self.EBOOK_DIR_MAIN = dirs
if len(dirs) > 1:
self.EBOOK_DIR_CARD_A = self.EBOOK_DIR_CARD_B = dirs[1]
else:
self.EBOOK_DIR_CARD_A = self.EBOOK_DIR_CARD_B = dirs[0]
def windows_sort_drives(self, drives): def windows_sort_drives(self, drives):
return drives return drives