Пример #1
0
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)
Пример #2
0
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)
Пример #3
0
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)