~ubuntu-branches/debian/wheezy/calibre/wheezy

« back to all changes in this revision

Viewing changes to src/calibre/devices/interface.py

  • Committer: Bazaar Package Importer
  • Author(s): Martin Pitt
  • Date: 2011-10-04 10:29:28 UTC
  • mfrom: (29.3.5 sid)
  • Revision ID: james.westby@ubuntu.com-20111004102928-lbwg8cyjscq1tiz7
Tags: 0.8.21+dfsg-1
* New upstream release. (Closes: #642517)
* debian/control: Revert accidental X-Ubuntu-Original-Maintainer change.
  (Closes: #644029)

Show diffs side-by-side

added added

removed removed

Lines of Context:
49
49
    #: Whether the metadata on books can be set via the GUI.
50
50
    CAN_SET_METADATA = ['title', 'authors', 'collections']
51
51
 
 
52
    #: Whether the device can handle device_db metadata plugboards
 
53
    CAN_DO_DEVICE_DB_PLUGBOARD = False
 
54
 
52
55
    # Set this to None if the books on the device are files that the GUI can
53
56
    # access in order to add the books from the device to the library
54
57
    BACKLOADING_ERROR_MESSAGE = _('Cannot get files from this device')
71
74
    #: For example: ``frozenset(['kobo'])``
72
75
    VIRTUAL_BOOK_EXTENSIONS = frozenset([])
73
76
 
 
77
    #: Whether to nuke comments in the copy of the book sent to the device. If
 
78
    #: not None this should be short string that the comments will be replaced
 
79
    #: by.
 
80
    NUKE_COMMENTS = None
 
81
 
 
82
 
74
83
    @classmethod
75
84
    def get_gui_name(cls):
76
85
        if hasattr(cls, 'gui_name'):