From 2d80aca4b033456164c5cf757673473b69b60a18 Mon Sep 17 00:00:00 2001 From: Timothy Legge Date: Fri, 15 Jul 2011 22:24:25 -0300 Subject: [PATCH] Kobo - fix list for customization messages --- src/calibre/devices/kobo/driver.py | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/src/calibre/devices/kobo/driver.py b/src/calibre/devices/kobo/driver.py index 17716a2588..367110f4a2 100644 --- a/src/calibre/devices/kobo/driver.py +++ b/src/calibre/devices/kobo/driver.py @@ -48,12 +48,16 @@ class KOBO(USBMS): VIRTUAL_BOOK_EXTENSIONS = frozenset(['kobo']) - EXTRA_CUSTOMIZATION_MESSAGE = _('The Kobo supports only one collection ' - 'currently: the \"Im_Reading\" list. Create a tag called \"Im_Reading\" ')+\ - 'for automatic management' + EXTRA_CUSTOMIZATION_MESSAGE = [ + _('The Kobo supports several collections including ')+\ + 'Read, Closed, Im_Reading ' +\ + _('Create tags for automatic management'), + ] EXTRA_CUSTOMIZATION_DEFAULT = ', '.join(['tags']) + OPT_COLLECTIONS = 0 + def initialize(self): USBMS.initialize(self) self.book_class = Book @@ -723,7 +727,7 @@ class KOBO(USBMS): opts = self.settings() if opts.extra_customization: collections = [x.lower().strip() for x in - opts.extra_customization.split(',')] + opts.extra_customization[self.OPT_COLLECTIONS].split(',')] else: collections = []