예제 #1
0
 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 __add_epub_format(filepath, b):
     bf = BookFormat()
     bf.Format = "EPUB"
     bf.Location = filepath
     b.formats = [bf]
예제 #3
0
 def __get_format(self):
     bf = BookFormat()
     bf.Format = "epub"
     bf.Location = "/dev/null"
     return bf
예제 #4
0
 def __add_format(b, filepath):
     bf = BookFormat()
     bf.Format = "PDF"
     bf.Location = filepath
     b.formats = [bf]