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
示例#2
0
 def __get_epub_format():
     bf = BookFormat()
     bf.Format = "EPUB"
示例#3
0
 def __add_epub_format(filepath, b):
     bf = BookFormat()
     bf.Format = "EPUB"
     bf.Location = filepath
     b.formats = [bf]
示例#4
0
 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)
示例#6
0
 def __get_format(self):
     bf = BookFormat()
     bf.Format = "epub"
     bf.Location = "/dev/null"
     return bf
示例#7
0
 def __get_format(self, formatcode):
     f2 = BookFormat()
     f2.Format = formatcode
     return f2
示例#8
0
 def __add_format(b, filepath):
     bf = BookFormat()
     bf.Format = "PDF"
     bf.Location = filepath
     b.formats = [bf]