~ubuntu-branches/ubuntu/karmic/calibre/karmic-updates

« back to all changes in this revision

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

  • Committer: Bazaar Package Importer
  • Author(s): Martin Pitt
  • Date: 2009-06-06 17:18:02 UTC
  • mfrom: (1.4.1 squeeze)
  • Revision ID: james.westby@ubuntu.com-20090606171802-fcu5dzgkxygn79y6
Tags: 0.5.14+dfsg-1
* New upstream release.
* debian/rules, get-orig-source: Do not unpack newly generated orig tarball
  if we don't have unpackaged upstream sources in the tree (such as when
  building with bzr-buildpackage).

Show diffs side-by-side

added added

removed removed

Lines of Context:
8
8
 
9
9
class BEBOOK(USBMS):
10
10
    # Ordered list of supported formats
11
 
    FORMATS     = ['mobi', 'epub', 'pdf', 'mobi', 'txt']
 
11
    FORMATS     = ['mobi', 'epub', 'pdf', 'txt']
12
12
 
13
13
    VENDOR_ID   = [0x0525]
14
14
    PRODUCT_ID  = [0x8803, 0x6803]
15
15
    BCD         = [0x312]
16
16
 
17
 
    VENDOR_NAME = 'BEBOOK'
18
 
    WINDOWS_MAIN_MEM = 'BEBOOK_INTERNAL_MEMORY'
19
 
    WINDOWS_CARD_MEM = 'BEBOOK_STORAGE_CARD'
 
17
    VENDOR_NAME = 'LINUX'
 
18
    WINDOWS_MAIN_MEM = 'FILE-STOR_GADGET'
 
19
    WINDOWS_CARD_MEM = 'FILE-STOR_GADGET'
20
20
 
21
21
    OSX_MAIN_MEM = 'BeBook Internal Memory'
22
22
    OSX_CARD_MEM = 'BeBook Storage Card'
28
28
 
29
29
    FDI_LUNS = {'lun0':1, 'lun1':0, 'lun2':2}
30
30
 
 
31
    def windows_sort_drives(self, drives):
 
32
        main = drives.get('main', None)
 
33
        card = drives.get('card', None)
 
34
        if card and main and card < main:
 
35
            drives['main'] = card
 
36
            drives['card'] = main
 
37
 
 
38
        return drives
 
39
 
 
40
 
 
41
 
31
42
class BEBOOKMINI(BEBOOK):
32
43
 
33
44
    VENDOR_ID   = [0x0492]
34
45
    PRODUCT_ID  = [0x8813]
35
46
    BCD         = [0x319]
36
47
 
37
 
    WINDOWS_MAIN_MEM = 'BEBOOKMINI_INTERNAL_MEMORY'
38
 
    WINDOWS_CARD_MEM = 'BEBOOKMINI_STORAGE_CARD'
39
 
 
40
48
    OSX_MAIN_MEM = 'BeBook Mini Internal Memory'
41
49
    OSX_CARD_MEM = 'BeBook Mini Storage Card'
42
50