aboutsummaryrefslogtreecommitdiff
path: root/epub
diff options
context:
space:
mode:
authorcedricbonhomme <devnull@localhost>2010-11-23 22:45:33 +0100
committercedricbonhomme <devnull@localhost>2010-11-23 22:45:33 +0100
commit6044dd1b2362358f06acab8c220d87f64b37b92c (patch)
tree49791498f4e4365b12dc6cd3ae2efee07463d827 /epub
parentAdded import to EPUB function. (diff)
downloadnewspipe-6044dd1b2362358f06acab8c220d87f64b37b92c.tar.gz
newspipe-6044dd1b2362358f06acab8c220d87f64b37b92c.tar.bz2
newspipe-6044dd1b2362358f06acab8c220d87f64b37b92c.zip
Syntax improvement.
Diffstat (limited to 'epub')
-rw-r--r--epub/epub.py5
-rw-r--r--epub/ez_epub.py4
2 files changed, 1 insertions, 8 deletions
diff --git a/epub/epub.py b/epub/epub.py
index 834acee6..16deaf1f 100644
--- a/epub/epub.py
+++ b/epub/epub.py
@@ -12,7 +12,6 @@ from genshi.template import TemplateLoader
from lxml import etree
class TocMapNode:
-
def __init__(self):
self.playOrder = 0
self.title = ''
@@ -30,9 +29,7 @@ class TocMapNode:
for child in self.children:
child.__assignPlayOrder(nextPlayOrder)
-
class EpubItem:
-
def __init__(self):
self.id = ''
self.srcPath = ''
@@ -40,9 +37,7 @@ class EpubItem:
self.mimeType = ''
self.html = ''
-
class EpubBook:
-
def __init__(self):
self.loader = TemplateLoader('./epub/templates')
diff --git a/epub/ez_epub.py b/epub/ez_epub.py
index afd2dbff..ecfd4f5a 100644
--- a/epub/ez_epub.py
+++ b/epub/ez_epub.py
@@ -5,7 +5,6 @@ import epub
from genshi.template import TemplateLoader
class Section:
-
def __init__(self):
self.title = ''
self.paragraphs = []
@@ -34,5 +33,4 @@ def makeBook(title, authors, sections, outputDir, lang='en-US', cover=None):
outputFile = outputDir + 'article.epub'
book.createBook(outputDir)
- book.createArchive(outputDir, outputFile)
- #book.checkEpub('epubcheck-1.0.5.jar', outputFile) \ No newline at end of file
+ book.createArchive(outputDir, outputFile) \ No newline at end of file
bgstack15