home *** CD-ROM | disk | FTP | other *** search
/ Maximum CD 2010 November / maximum-cd-2010-11.iso / DiscContents / calibre-0.7.13.msi / file_732 (.txt) < prev    next >
Encoding:
Python Compiled Bytecode  |  2010-08-06  |  1.8 KB  |  55 lines

  1. # Source Generated with Decompyle++
  2. # File: in.pyc (Python 2.6)
  3.  
  4. __license__ = 'GPL v3'
  5. __copyright__ = '2009, John Schember <john at nachtimwald.com>'
  6. __docformat__ = 'restructuredtext en'
  7. from calibre.devices.usbms.driver import USBMS
  8.  
  9. class README(USBMS):
  10.     name = 'Binatone Readme Device Interface'
  11.     gui_name = 'Binatone Readme'
  12.     description = _('Communicate with the Binatone Readme eBook reader.')
  13.     author = 'John Schember'
  14.     supported_platforms = [
  15.         'windows',
  16.         'osx',
  17.         'linux']
  18.     FORMATS = [
  19.         'txt']
  20.     VENDOR_ID = [
  21.         1276]
  22.     PRODUCT_ID = [
  23.         21859]
  24.     BCD = [
  25.         256]
  26.     VENDOR_NAME = ''
  27.     WINDOWS_MAIN_MEM = 'MASS_STORAGE'
  28.     WINDOWS_CARD_A_MEM = 'MASS_STORAGE'
  29.     MAIN_MEMORY_VOLUME_LABEL = 'Readme Main Memory'
  30.     STORAGE_CARD_VOLUME_LABEL = 'Readme Storage Card'
  31.     SUPPORTS_SUB_DIRS = True
  32.     
  33.     def linux_swap_drives(self, drives):
  34.         if len(drives) < 2:
  35.             return drives
  36.         drives = list(drives)
  37.         t = drives[0]
  38.         drives[0] = drives[1]
  39.         drives[1] = t
  40.         return tuple(drives)
  41.  
  42.     
  43.     def windows_sort_drives(self, drives):
  44.         if len(drives) < 2:
  45.             return drives
  46.         main = drives.get('main', None)
  47.         carda = drives.get('carda', None)
  48.         if main and carda:
  49.             drives['main'] = carda
  50.             drives['carda'] = main
  51.         
  52.         return drives
  53.  
  54.  
  55.