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 __get_epub_format(): bf = BookFormat() bf.Format = "EPUB"
def __add_epub_format(filepath, b): bf = BookFormat() bf.Format = "EPUB" bf.Location = filepath b.formats = [bf]
def __add_book_to_format(a_book, book_format): bf = BookFormat() bf.Format, bf.Location = book_format a_book.formats.append(bf)
def __add_book_to_format(self, b, book_format): bf = BookFormat() bf.Format, bf.Location = book_format b.formats.append(bf)
def __get_format(self): bf = BookFormat() bf.Format = "epub" bf.Location = "/dev/null" return bf
def __get_format(self, formatcode): f2 = BookFormat() f2.Format = formatcode return f2
def __add_format(b, filepath): bf = BookFormat() bf.Format = "PDF" bf.Location = filepath b.formats = [bf]