Clearer message about the new Kobo firmware

This commit is contained in:
Kovid Goyal 2012-07-18 11:22:56 +05:30
parent dce57ee13d
commit fb5b41232d

View File

@ -601,17 +601,23 @@ class KOBO(USBMS):
# Unsupported database # Unsupported database
opts = self.settings() opts = self.settings()
if not opts.extra_customization[self.OPT_SUPPORT_NEWER_FIRMWARE]: if not opts.extra_customization[self.OPT_SUPPORT_NEWER_FIRMWARE]:
debug_print('The database has been upgraded past supported version')
debug_print('The database has been upgraded past supported version') debug_print('The database has been upgraded past supported version')
self.report_progress(1.0, _('Removing books from device...')) self.report_progress(1.0, _('Removing books from device...'))
from calibre.devices.errors import UserFeedback from calibre.devices.errors import UserFeedback
raise UserFeedback(_("Kobo database version unsupported - See details"), raise UserFeedback(_("Kobo database version unsupported - See details"),
_('Your Kobo is running an updated firmware/database version. ' _('Your Kobo is running an updated firmware/database version.'
'As Calibre has not been updated, database editing is disabled. ' ' As calibre does not know about this updated firmware,'
'You can enable support for your Kobo in plugin preferences. ' ' database editing is disabled, to prevent corruption.'
'Doing so may require you to perform a factory reset. ' ' You can still send books to your Kobo with calibre, '
'Before selecting the "Attempt to support newer firmware" option ' ' but deleting books and managing collections is disabled.'
'you should be familiar with restoring your Kobo to factory defaults.'), ' If you are willing to experiment and know how to reset'
' your Kobo to Factory defaults, you can override this'
' check by right clicking the device icon in calibre and'
' selecting "Configure this device" and then the '
' "Attempt to support newer firmware" option.'
' Doing so may require you to perform a factory reset of'
' your Kobo.'
),
UserFeedback.WARN) UserFeedback.WARN)
return False return False