def __get_book_with_format(self): b = self.__get_book() bf = BookFormat() bf.Format = "EPUB" bf.Location = "/dev/null" b.add_format(bf) return b
def __add_epub_format(filepath, b): bf = BookFormat() bf.Format = "EPUB" bf.Location = filepath b.formats = [bf]
def __get_format(self): bf = BookFormat() bf.Format = "epub" bf.Location = "/dev/null" return bf
def __add_format(b, filepath): bf = BookFormat() bf.Format = "PDF" bf.Location = filepath b.formats = [bf]