def sidecar(book, requested_guid = None, annotations_list = None): if not annotations_list: annotations_list = annotations.get_all(book.asin) if book.content_type == _CONTENT_TYPE_MOBI: return mbp.assemble_sidecar(book, requested_guid, annotations_list) if book.content_type == _CONTENT_TYPE_MOBI8: return han.assemble_sidecar(book, requested_guid, annotations_list)
def sidecar(book, requested_guid=None, annotations_list=None): if not annotations_list: annotations_list = annotations.get_all(book.asin) if book.content_type == _CONTENT_TYPE_MOBI: return mbp.assemble_sidecar(book, requested_guid, annotations_list) if book.content_type == _CONTENT_TYPE_MOBI8: return han.assemble_sidecar(book, requested_guid, annotations_list)
def sidecar(book, annotations_list = None): if book.content_type == CONTENT_TYPE_MOBIPOCKET: if not annotations_list: annotations_list = annotations.get_all(book.asin) return mbp.assemble_sidecar(book, annotations_list)