~ubuntu-branches/debian/sid/calibre/sid

« back to all changes in this revision

Viewing changes to src/calibre/devices/eb600/driver.py

  • Committer: Package Import Robot
  • Author(s): Martin Pitt
  • Date: 2014-05-14 18:17:50 UTC
  • mfrom: (1.5.10)
  • Revision ID: package-import@ubuntu.com-20140514181750-xyrxqa47dbw0qfhu
Tags: 1.36.0+dfsg-1
* New upstream release:
  - Fixes editing of metadata (Closes: #741638)

Show diffs side-by-side

added added

removed removed

Lines of Context:
53
53
 
54
54
    name = 'Tolino Shine Device Interface'
55
55
    gui_name = 'Tolino Shine'
56
 
    description    = _('Communicate with the Tolino Shine reader.')
 
56
    description    = _('Communicate with the Tolino Shine and Vision readers')
57
57
    FORMATS = ['epub', 'pdf', 'txt']
58
 
    BCD         = [0x226]
59
 
    VENDOR_NAME      = ['DEUTSCHE']
60
 
    WINDOWS_MAIN_MEM = WINDOWS_CARD_A_MEM = ['_TELEKOMTOLINO']
 
58
    PRODUCT_ID  = EB600.PRODUCT_ID + [0x6033]
 
59
    BCD         = [0x226, 0x9999]
 
60
    VENDOR_NAME      = ['DEUTSCHE', 'LINUX']
 
61
    WINDOWS_MAIN_MEM = WINDOWS_CARD_A_MEM = ['_TELEKOMTOLINO', 'FILE-CD_GADGET']
61
62
 
62
63
    EXTRA_CUSTOMIZATION_MESSAGE = [
63
64
        _('Swap main and card A') +
95
96
            drives['carda'] = main
96
97
        return drives
97
98
 
 
99
    def post_open_callback(self):
 
100
        # The Tolino Vision only handles books inside the Books folder
 
101
        product_id = self.device_being_opened[1]
 
102
        self.ebook_dir_for_upload = 'Books' if product_id == 0x6033 else ''
 
103
 
 
104
    def get_main_ebook_dir(self, for_upload=False):
 
105
        if for_upload:
 
106
            return getattr(self, 'ebook_dir_for_upload', self.EBOOK_DIR_MAIN)
 
107
        return self.EBOOK_DIR_MAIN
 
108
 
98
109
class COOL_ER(EB600):
99
110
 
100
111
    name = 'Cool-er device interface'