~wordpress-2/calibre/library-gui

« back to all changes in this revision

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

  • Committer: Kovid Goyal
  • Date: 2011-10-19 04:36:51 UTC
  • Revision ID: kovid@kovidgoyal.net-20111019043651-21cpbm5f36p5g3le
Refactor annotations code

Show diffs side-by-side

added added

removed removed

Lines of Context:
62
62
    #: Icon for this device
63
63
    icon = I('reader.png')
64
64
 
65
 
    # Used by gui2.ui:annotations_fetched() and devices.kindle.driver:get_annotations()
 
65
    # Encapsulates an annotation fetched from the device
66
66
    UserAnnotation = namedtuple('Annotation','type, value')
67
67
 
68
68
    #: GUI displays this as a message if not None. Useful if opening can take a