forked from openlp/openlp
Fix __init__ calling and imports
This commit is contained in:
parent
83354166da
commit
bea44a5124
@ -33,8 +33,9 @@ from BeautifulSoup import BeautifulSoup, Tag, NavigableString
|
||||
|
||||
from openlp.core.lib import Receiver
|
||||
from openlp.core.utils import AppLocation
|
||||
from common import BibleCommon, SearchResults, unescape
|
||||
from db import BibleDB
|
||||
from openlp.plugins.bibles.lib.common import BibleCommon, SearchResults, \
|
||||
unescape
|
||||
from openlp.plugins.bibles.lib.db import BibleDB
|
||||
from openlp.plugins.bibles.lib.models import Book
|
||||
|
||||
log = logging.getLogger(__name__)
|
||||
|
@ -176,14 +176,12 @@ class ImpressController(PresentationController):
|
||||
return doc
|
||||
|
||||
class ImpressDocument(PresentationDocument):
|
||||
|
||||
def __init__(self, controller, presentation):
|
||||
log.debug(u'Init Presentation OpenOffice')
|
||||
self.controller = controller
|
||||
PresentationDocument.__init__(controller, presentation)
|
||||
self.document = None
|
||||
self.presentation = None
|
||||
self.control = None
|
||||
self.store_filename(presentation)
|
||||
|
||||
def load_presentation(self):
|
||||
"""
|
||||
|
@ -102,12 +102,10 @@ class PowerpointController(PresentationController):
|
||||
return doc
|
||||
|
||||
class PowerpointDocument(PresentationDocument):
|
||||
|
||||
def __init__(self, controller, presentation):
|
||||
log.debug(u'Init Presentation Powerpoint')
|
||||
PresentationDocument.__init__(controller, presentation)
|
||||
self.presentation = None
|
||||
self.controller = controller
|
||||
self.store_filename(presentation)
|
||||
|
||||
def load_presentation(self):
|
||||
"""
|
||||
|
@ -102,11 +102,10 @@ class PptviewController(PresentationController):
|
||||
class PptviewDocument(PresentationDocument):
|
||||
def __init__(self, controller, presentation):
|
||||
log.debug(u'Init Presentation PowerPoint')
|
||||
PresentationDocument.__init__(controller, presentation)
|
||||
self.presentation = None
|
||||
self.pptid = None
|
||||
self.blanked = False
|
||||
self.controller = controller
|
||||
self.store_filename(presentation)
|
||||
|
||||
def load_presentation(self):
|
||||
"""
|
||||
|
Loading…
Reference in New Issue
Block a user