forked from openlp/openlp
plugins done and tested
This commit is contained in:
parent
71c3c715bf
commit
5495ba8cf3
@ -1,6 +1,7 @@
|
|||||||
# -*- coding: utf-8 -*-
|
# -*- coding: utf-8 -*-
|
||||||
# vim: autoindent shiftwidth=4 expandtab textwidth=120 tabstop=4 softtabstop=4
|
# vim: autoindent shiftwidth=4 expandtab textwidth=120 tabstop=4 softtabstop=4
|
||||||
|
|
||||||
|
import json
|
||||||
###############################################################################
|
###############################################################################
|
||||||
# OpenLP - Open Source Lyrics Projection #
|
# OpenLP - Open Source Lyrics Projection #
|
||||||
# --------------------------------------------------------------------------- #
|
# --------------------------------------------------------------------------- #
|
||||||
@ -20,16 +21,14 @@
|
|||||||
# Temple Place, Suite 330, Boston, MA 02111-1307 USA #
|
# Temple Place, Suite 330, Boston, MA 02111-1307 USA #
|
||||||
###############################################################################
|
###############################################################################
|
||||||
import logging
|
import logging
|
||||||
import json
|
|
||||||
import urllib
|
import urllib
|
||||||
from urllib.parse import urlparse
|
from urllib.parse import urlparse
|
||||||
|
|
||||||
from openlp.core.api.http.endpoint import Endpoint
|
|
||||||
from openlp.core.api.http import requires_auth
|
from openlp.core.api.http import requires_auth
|
||||||
|
from openlp.core.api.http.endpoint import Endpoint
|
||||||
from openlp.core.common.registry import Registry
|
from openlp.core.common.registry import Registry
|
||||||
from openlp.core.lib import PluginStatus
|
from openlp.core.lib import PluginStatus
|
||||||
|
|
||||||
|
|
||||||
log = logging.getLogger(__name__)
|
log = logging.getLogger(__name__)
|
||||||
|
|
||||||
alerts_endpoint = Endpoint('alert')
|
alerts_endpoint = Endpoint('alert')
|
||||||
|
@ -25,7 +25,6 @@ from PyQt5 import QtCore, QtWidgets
|
|||||||
from openlp.core.common.i18n import translate
|
from openlp.core.common.i18n import translate
|
||||||
from openlp.core.common.registry import Registry
|
from openlp.core.common.registry import Registry
|
||||||
from openlp.plugins.alerts.lib.db import AlertItem
|
from openlp.plugins.alerts.lib.db import AlertItem
|
||||||
|
|
||||||
from .alertdialog import Ui_AlertDialog
|
from .alertdialog import Ui_AlertDialog
|
||||||
|
|
||||||
|
|
||||||
|
@ -23,11 +23,11 @@
|
|||||||
import logging
|
import logging
|
||||||
|
|
||||||
from openlp.core.api.http import register_endpoint
|
from openlp.core.api.http import register_endpoint
|
||||||
from openlp.core.common.i18n import UiStrings, translate
|
|
||||||
from openlp.core.common.actions import ActionList
|
from openlp.core.common.actions import ActionList
|
||||||
|
from openlp.core.common.i18n import UiStrings, translate
|
||||||
from openlp.core.lib import Plugin, StringContent, build_icon
|
from openlp.core.lib import Plugin, StringContent, build_icon
|
||||||
from openlp.plugins.bibles.endpoint import api_bibles_endpoint, bibles_endpoint
|
|
||||||
from openlp.core.lib.ui import create_action
|
from openlp.core.lib.ui import create_action
|
||||||
|
from openlp.plugins.bibles.endpoint import api_bibles_endpoint, bibles_endpoint
|
||||||
from openlp.plugins.bibles.lib import BibleManager, BiblesTab, BibleMediaItem, LayoutStyle, DisplayStyle, \
|
from openlp.plugins.bibles.lib import BibleManager, BiblesTab, BibleMediaItem, LayoutStyle, DisplayStyle, \
|
||||||
LanguageSelection
|
LanguageSelection
|
||||||
from openlp.plugins.bibles.lib.mediaitem import BibleSearch
|
from openlp.plugins.bibles.lib.mediaitem import BibleSearch
|
||||||
|
@ -21,11 +21,10 @@
|
|||||||
###############################################################################
|
###############################################################################
|
||||||
import logging
|
import logging
|
||||||
|
|
||||||
from openlp.core.api.http.endpoint import Endpoint
|
|
||||||
from openlp.core.api.http.errors import NotFound
|
|
||||||
from openlp.core.api.endpoint.pluginhelpers import search, live, service
|
from openlp.core.api.endpoint.pluginhelpers import search, live, service
|
||||||
from openlp.core.api.http import requires_auth
|
from openlp.core.api.http import requires_auth
|
||||||
|
from openlp.core.api.http.endpoint import Endpoint
|
||||||
|
from openlp.core.api.http.errors import NotFound
|
||||||
|
|
||||||
log = logging.getLogger(__name__)
|
log = logging.getLogger(__name__)
|
||||||
|
|
||||||
|
@ -24,9 +24,9 @@
|
|||||||
The :mod:`forms` module contains all the ui functionality for the bibles
|
The :mod:`forms` module contains all the ui functionality for the bibles
|
||||||
plugin.
|
plugin.
|
||||||
"""
|
"""
|
||||||
from .booknameform import BookNameForm
|
|
||||||
from .languageform import LanguageForm
|
|
||||||
from .bibleimportform import BibleImportForm
|
from .bibleimportform import BibleImportForm
|
||||||
|
from .booknameform import BookNameForm
|
||||||
from .editbibleform import EditBibleForm
|
from .editbibleform import EditBibleForm
|
||||||
|
from .languageform import LanguageForm
|
||||||
|
|
||||||
__all__ = ['BookNameForm', 'LanguageForm', 'BibleImportForm', 'EditBibleForm']
|
__all__ = ['BookNameForm', 'LanguageForm', 'BibleImportForm', 'EditBibleForm']
|
||||||
|
@ -24,9 +24,10 @@ The bible import functions for OpenLP
|
|||||||
"""
|
"""
|
||||||
import logging
|
import logging
|
||||||
import urllib.error
|
import urllib.error
|
||||||
from lxml import etree
|
|
||||||
|
|
||||||
from PyQt5 import QtWidgets
|
from PyQt5 import QtWidgets
|
||||||
|
from lxml import etree
|
||||||
|
|
||||||
try:
|
try:
|
||||||
from pysword import modules
|
from pysword import modules
|
||||||
PYSWORD_AVAILABLE = True
|
PYSWORD_AVAILABLE = True
|
||||||
|
@ -26,8 +26,8 @@ Module implementing BookNameForm.
|
|||||||
import logging
|
import logging
|
||||||
import re
|
import re
|
||||||
|
|
||||||
from PyQt5.QtWidgets import QDialog
|
|
||||||
from PyQt5 import QtCore
|
from PyQt5 import QtCore
|
||||||
|
from PyQt5.QtWidgets import QDialog
|
||||||
|
|
||||||
from openlp.core.common.i18n import translate
|
from openlp.core.common.i18n import translate
|
||||||
from openlp.core.lib.ui import critical_error_message_box
|
from openlp.core.lib.ui import critical_error_message_box
|
||||||
|
@ -28,9 +28,9 @@ from PyQt5 import QtCore, QtWidgets
|
|||||||
from openlp.core.common.i18n import UiStrings, translate
|
from openlp.core.common.i18n import UiStrings, translate
|
||||||
from openlp.core.common.mixins import RegistryProperties
|
from openlp.core.common.mixins import RegistryProperties
|
||||||
from openlp.core.lib.ui import critical_error_message_box
|
from openlp.core.lib.ui import critical_error_message_box
|
||||||
from .editbibledialog import Ui_EditBibleDialog
|
|
||||||
from openlp.plugins.bibles.lib import BibleStrings
|
from openlp.plugins.bibles.lib import BibleStrings
|
||||||
from openlp.plugins.bibles.lib.db import BiblesResourcesDB
|
from openlp.plugins.bibles.lib.db import BiblesResourcesDB
|
||||||
|
from .editbibledialog import Ui_EditBibleDialog
|
||||||
|
|
||||||
log = logging.getLogger(__name__)
|
log = logging.getLogger(__name__)
|
||||||
|
|
||||||
|
@ -25,14 +25,13 @@ Module implementing LanguageForm.
|
|||||||
"""
|
"""
|
||||||
import logging
|
import logging
|
||||||
|
|
||||||
from PyQt5.QtWidgets import QDialog
|
|
||||||
from PyQt5 import QtCore
|
from PyQt5 import QtCore
|
||||||
|
from PyQt5.QtWidgets import QDialog
|
||||||
|
|
||||||
from openlp.core.common.i18n import LANGUAGES, translate
|
from openlp.core.common.i18n import LANGUAGES, translate
|
||||||
from openlp.core.lib.ui import critical_error_message_box
|
from openlp.core.lib.ui import critical_error_message_box
|
||||||
from openlp.plugins.bibles.forms.languagedialog import Ui_LanguageDialog
|
from openlp.plugins.bibles.forms.languagedialog import Ui_LanguageDialog
|
||||||
|
|
||||||
|
|
||||||
log = logging.getLogger(__name__)
|
log = logging.getLogger(__name__)
|
||||||
|
|
||||||
|
|
||||||
|
@ -29,7 +29,6 @@ import re
|
|||||||
from openlp.core.common.i18n import translate
|
from openlp.core.common.i18n import translate
|
||||||
from openlp.core.common.settings import Settings
|
from openlp.core.common.settings import Settings
|
||||||
|
|
||||||
|
|
||||||
log = logging.getLogger(__name__)
|
log = logging.getLogger(__name__)
|
||||||
|
|
||||||
|
|
||||||
|
@ -20,12 +20,13 @@
|
|||||||
# Temple Place, Suite 330, Boston, MA 02111-1307 USA #
|
# Temple Place, Suite 330, Boston, MA 02111-1307 USA #
|
||||||
###############################################################################
|
###############################################################################
|
||||||
|
|
||||||
from lxml import etree, objectify
|
|
||||||
from zipfile import is_zipfile
|
from zipfile import is_zipfile
|
||||||
|
|
||||||
|
from lxml import etree, objectify
|
||||||
|
|
||||||
|
from openlp.core.common.i18n import get_language, translate
|
||||||
from openlp.core.common.mixins import LogMixin, RegistryProperties
|
from openlp.core.common.mixins import LogMixin, RegistryProperties
|
||||||
from openlp.core.common.registry import Registry
|
from openlp.core.common.registry import Registry
|
||||||
from openlp.core.common.i18n import get_language, translate
|
|
||||||
from openlp.core.lib import ValidationError
|
from openlp.core.lib import ValidationError
|
||||||
from openlp.core.lib.ui import critical_error_message_box
|
from openlp.core.lib.ui import critical_error_message_box
|
||||||
from openlp.plugins.bibles.lib.db import AlternativeBookNamesDB, BibleDB, BiblesResourcesDB
|
from openlp.plugins.bibles.lib.db import AlternativeBookNamesDB, BibleDB, BiblesResourcesDB
|
||||||
|
@ -1,6 +1,11 @@
|
|||||||
# -*- coding: utf-8 -*-
|
# -*- coding: utf-8 -*-
|
||||||
# vim: autoindent shiftwidth=4 expandtab textwidth=120 tabstop=4 softtabstop=4
|
# vim: autoindent shiftwidth=4 expandtab textwidth=120 tabstop=4 softtabstop=4
|
||||||
|
|
||||||
|
import logging
|
||||||
|
import re
|
||||||
|
import sqlite3
|
||||||
|
import time
|
||||||
|
|
||||||
###############################################################################
|
###############################################################################
|
||||||
# OpenLP - Open Source Lyrics Projection #
|
# OpenLP - Open Source Lyrics Projection #
|
||||||
# --------------------------------------------------------------------------- #
|
# --------------------------------------------------------------------------- #
|
||||||
@ -20,12 +25,6 @@
|
|||||||
# Temple Place, Suite 330, Boston, MA 02111-1307 USA #
|
# Temple Place, Suite 330, Boston, MA 02111-1307 USA #
|
||||||
###############################################################################
|
###############################################################################
|
||||||
import chardet
|
import chardet
|
||||||
import logging
|
|
||||||
import os
|
|
||||||
import re
|
|
||||||
import sqlite3
|
|
||||||
import time
|
|
||||||
|
|
||||||
from PyQt5 import QtCore
|
from PyQt5 import QtCore
|
||||||
from sqlalchemy import Column, ForeignKey, Table, or_, types, func
|
from sqlalchemy import Column, ForeignKey, Table, or_, types, func
|
||||||
from sqlalchemy.exc import OperationalError
|
from sqlalchemy.exc import OperationalError
|
||||||
|
@ -25,8 +25,8 @@ The :mod:`http` module enables OpenLP to retrieve scripture from bible websites.
|
|||||||
import logging
|
import logging
|
||||||
import re
|
import re
|
||||||
import socket
|
import socket
|
||||||
import urllib.parse
|
|
||||||
import urllib.error
|
import urllib.error
|
||||||
|
import urllib.parse
|
||||||
|
|
||||||
from bs4 import BeautifulSoup, NavigableString, Tag
|
from bs4 import BeautifulSoup, NavigableString, Tag
|
||||||
|
|
||||||
|
@ -21,6 +21,7 @@
|
|||||||
###############################################################################
|
###############################################################################
|
||||||
|
|
||||||
import logging
|
import logging
|
||||||
|
|
||||||
from pysword import modules
|
from pysword import modules
|
||||||
|
|
||||||
from openlp.core.common.i18n import translate
|
from openlp.core.common.i18n import translate
|
||||||
@ -28,7 +29,6 @@ from openlp.core.lib.ui import critical_error_message_box
|
|||||||
from openlp.plugins.bibles.lib.bibleimport import BibleImport
|
from openlp.plugins.bibles.lib.bibleimport import BibleImport
|
||||||
from openlp.plugins.bibles.lib.db import BiblesResourcesDB
|
from openlp.plugins.bibles.lib.db import BiblesResourcesDB
|
||||||
|
|
||||||
|
|
||||||
log = logging.getLogger(__name__)
|
log = logging.getLogger(__name__)
|
||||||
|
|
||||||
|
|
||||||
|
@ -27,7 +27,6 @@ from openlp.core.lib.ui import critical_error_message_box
|
|||||||
from openlp.plugins.bibles.lib.bibleimport import BibleImport
|
from openlp.plugins.bibles.lib.bibleimport import BibleImport
|
||||||
from openlp.plugins.bibles.lib.db import BiblesResourcesDB
|
from openlp.plugins.bibles.lib.db import BiblesResourcesDB
|
||||||
|
|
||||||
|
|
||||||
log = logging.getLogger(__name__)
|
log = logging.getLogger(__name__)
|
||||||
|
|
||||||
# Tags we don't use and can remove the content
|
# Tags we don't use and can remove the content
|
||||||
|
@ -33,8 +33,9 @@ from .importers.csvbible import CSVBible
|
|||||||
from .importers.http import HTTPBible
|
from .importers.http import HTTPBible
|
||||||
from .importers.opensong import OpenSongBible
|
from .importers.opensong import OpenSongBible
|
||||||
from .importers.osis import OSISBible
|
from .importers.osis import OSISBible
|
||||||
from .importers.zefania import ZefaniaBible
|
|
||||||
from .importers.wordproject import WordProjectBible
|
from .importers.wordproject import WordProjectBible
|
||||||
|
from .importers.zefania import ZefaniaBible
|
||||||
|
|
||||||
try:
|
try:
|
||||||
from .importers.sword import SwordBible
|
from .importers.sword import SwordBible
|
||||||
except:
|
except:
|
||||||
|
@ -21,11 +21,10 @@
|
|||||||
###############################################################################
|
###############################################################################
|
||||||
import logging
|
import logging
|
||||||
|
|
||||||
from openlp.core.api.http.endpoint import Endpoint
|
|
||||||
from openlp.core.api.http.errors import NotFound
|
|
||||||
from openlp.core.api.endpoint.pluginhelpers import search, live, service
|
from openlp.core.api.endpoint.pluginhelpers import search, live, service
|
||||||
from openlp.core.api.http import requires_auth
|
from openlp.core.api.http import requires_auth
|
||||||
|
from openlp.core.api.http.endpoint import Endpoint
|
||||||
|
from openlp.core.api.http.errors import NotFound
|
||||||
|
|
||||||
log = logging.getLogger(__name__)
|
log = logging.getLogger(__name__)
|
||||||
|
|
||||||
|
@ -20,6 +20,6 @@
|
|||||||
# Temple Place, Suite 330, Boston, MA 02111-1307 USA #
|
# Temple Place, Suite 330, Boston, MA 02111-1307 USA #
|
||||||
###############################################################################
|
###############################################################################
|
||||||
|
|
||||||
|
from .customtab import CustomTab
|
||||||
from .customxmlhandler import CustomXMLBuilder, CustomXMLParser
|
from .customxmlhandler import CustomXMLBuilder, CustomXMLParser
|
||||||
from .mediaitem import CustomMediaItem
|
from .mediaitem import CustomMediaItem
|
||||||
from .customtab import CustomTab
|
|
||||||
|
@ -36,9 +36,9 @@ The basic XML is of the format::
|
|||||||
"""
|
"""
|
||||||
|
|
||||||
import logging
|
import logging
|
||||||
|
|
||||||
from xml.dom.minidom import Document
|
from xml.dom.minidom import Document
|
||||||
from xml.etree.ElementTree import dump
|
from xml.etree.ElementTree import dump
|
||||||
|
|
||||||
from lxml import etree, objectify
|
from lxml import etree, objectify
|
||||||
|
|
||||||
log = logging.getLogger(__name__)
|
log = logging.getLogger(__name__)
|
||||||
|
@ -21,11 +21,10 @@
|
|||||||
###############################################################################
|
###############################################################################
|
||||||
import logging
|
import logging
|
||||||
|
|
||||||
from openlp.core.api.http.endpoint import Endpoint
|
|
||||||
from openlp.core.api.http.errors import NotFound
|
|
||||||
from openlp.core.api.endpoint.pluginhelpers import search, live, service, display_thumbnails
|
from openlp.core.api.endpoint.pluginhelpers import search, live, service, display_thumbnails
|
||||||
from openlp.core.api.http import requires_auth
|
from openlp.core.api.http import requires_auth
|
||||||
|
from openlp.core.api.http.endpoint import Endpoint
|
||||||
|
from openlp.core.api.http.errors import NotFound
|
||||||
|
|
||||||
log = logging.getLogger(__name__)
|
log = logging.getLogger(__name__)
|
||||||
|
|
||||||
|
@ -20,10 +20,10 @@
|
|||||||
# Temple Place, Suite 330, Boston, MA 02111-1307 USA #
|
# Temple Place, Suite 330, Boston, MA 02111-1307 USA #
|
||||||
###############################################################################
|
###############################################################################
|
||||||
|
|
||||||
from PyQt5 import QtGui
|
|
||||||
|
|
||||||
import logging
|
import logging
|
||||||
|
|
||||||
|
from PyQt5 import QtGui
|
||||||
|
|
||||||
from openlp.core.api.http import register_endpoint
|
from openlp.core.api.http import register_endpoint
|
||||||
from openlp.core.common.i18n import translate
|
from openlp.core.common.i18n import translate
|
||||||
from openlp.core.common.settings import Settings
|
from openlp.core.common.settings import Settings
|
||||||
|
@ -20,5 +20,5 @@
|
|||||||
# Temple Place, Suite 330, Boston, MA 02111-1307 USA #
|
# Temple Place, Suite 330, Boston, MA 02111-1307 USA #
|
||||||
###############################################################################
|
###############################################################################
|
||||||
|
|
||||||
from .mediaitem import ImageMediaItem
|
|
||||||
from .imagetab import ImageTab
|
from .imagetab import ImageTab
|
||||||
|
from .mediaitem import ImageMediaItem
|
||||||
|
@ -37,7 +37,6 @@ from openlp.core.widgets.views import TreeWidgetWithDnD
|
|||||||
from openlp.plugins.images.forms import AddGroupForm, ChooseGroupForm
|
from openlp.plugins.images.forms import AddGroupForm, ChooseGroupForm
|
||||||
from openlp.plugins.images.lib.db import ImageFilenames, ImageGroups
|
from openlp.plugins.images.lib.db import ImageFilenames, ImageGroups
|
||||||
|
|
||||||
|
|
||||||
log = logging.getLogger(__name__)
|
log = logging.getLogger(__name__)
|
||||||
|
|
||||||
|
|
||||||
|
@ -21,11 +21,10 @@
|
|||||||
###############################################################################
|
###############################################################################
|
||||||
import logging
|
import logging
|
||||||
|
|
||||||
from openlp.core.api.http.endpoint import Endpoint
|
|
||||||
from openlp.core.api.http.errors import NotFound
|
|
||||||
from openlp.core.api.endpoint.pluginhelpers import search, live, service
|
from openlp.core.api.endpoint.pluginhelpers import search, live, service
|
||||||
from openlp.core.api.http import requires_auth
|
from openlp.core.api.http import requires_auth
|
||||||
|
from openlp.core.api.http.endpoint import Endpoint
|
||||||
|
from openlp.core.api.http.errors import NotFound
|
||||||
|
|
||||||
log = logging.getLogger(__name__)
|
log = logging.getLogger(__name__)
|
||||||
|
|
||||||
|
@ -1,6 +1,7 @@
|
|||||||
# -*- coding: utf-8 -*-
|
# -*- coding: utf-8 -*-
|
||||||
# vim: autoindent shiftwidth=4 expandtab textwidth=120 tabstop=4 softtabstop=4
|
# vim: autoindent shiftwidth=4 expandtab textwidth=120 tabstop=4 softtabstop=4
|
||||||
|
|
||||||
|
import logging
|
||||||
###############################################################################
|
###############################################################################
|
||||||
# OpenLP - Open Source Lyrics Projection #
|
# OpenLP - Open Source Lyrics Projection #
|
||||||
# --------------------------------------------------------------------------- #
|
# --------------------------------------------------------------------------- #
|
||||||
@ -20,20 +21,19 @@
|
|||||||
# Temple Place, Suite 330, Boston, MA 02111-1307 USA #
|
# Temple Place, Suite 330, Boston, MA 02111-1307 USA #
|
||||||
###############################################################################
|
###############################################################################
|
||||||
import os
|
import os
|
||||||
import logging
|
|
||||||
import re
|
import re
|
||||||
from time import sleep
|
|
||||||
from datetime import datetime
|
from datetime import datetime
|
||||||
|
from time import sleep
|
||||||
|
|
||||||
from PyQt5 import QtCore, QtGui, QtWidgets
|
from PyQt5 import QtCore, QtGui, QtWidgets
|
||||||
|
|
||||||
from openlp.core.common import is_win, is_linux, is_macosx
|
from openlp.core.common import is_win, is_linux, is_macosx
|
||||||
from openlp.core.common.path import Path
|
|
||||||
from openlp.core.common.i18n import translate
|
from openlp.core.common.i18n import translate
|
||||||
from openlp.core.common.mixins import RegistryProperties
|
from openlp.core.common.mixins import RegistryProperties
|
||||||
from openlp.plugins.media.forms.mediaclipselectordialog import Ui_MediaClipSelector
|
from openlp.core.common.path import Path
|
||||||
from openlp.core.lib.ui import critical_error_message_box
|
from openlp.core.lib.ui import critical_error_message_box
|
||||||
from openlp.core.ui.media.vlcplayer import get_vlc
|
from openlp.core.ui.media.vlcplayer import get_vlc
|
||||||
|
from openlp.plugins.media.forms.mediaclipselectordialog import Ui_MediaClipSelector
|
||||||
|
|
||||||
if is_win():
|
if is_win():
|
||||||
from win32com.client import Dispatch
|
from win32com.client import Dispatch
|
||||||
|
@ -27,8 +27,8 @@ from PyQt5 import QtCore, QtWidgets
|
|||||||
|
|
||||||
from openlp.core.common.applocation import AppLocation
|
from openlp.core.common.applocation import AppLocation
|
||||||
from openlp.core.common.i18n import UiStrings, translate, get_natural_key
|
from openlp.core.common.i18n import UiStrings, translate, get_natural_key
|
||||||
from openlp.core.common.path import Path, path_to_str, create_paths
|
|
||||||
from openlp.core.common.mixins import RegistryProperties
|
from openlp.core.common.mixins import RegistryProperties
|
||||||
|
from openlp.core.common.path import Path, path_to_str, create_paths
|
||||||
from openlp.core.common.registry import Registry
|
from openlp.core.common.registry import Registry
|
||||||
from openlp.core.common.settings import Settings
|
from openlp.core.common.settings import Settings
|
||||||
from openlp.core.lib import ItemCapabilities, MediaManagerItem, MediaType, ServiceItem, ServiceItemContext, \
|
from openlp.core.lib import ItemCapabilities, MediaManagerItem, MediaType, ServiceItem, ServiceItemContext, \
|
||||||
|
@ -23,7 +23,6 @@
|
|||||||
The Media plugin
|
The Media plugin
|
||||||
"""
|
"""
|
||||||
import logging
|
import logging
|
||||||
import os
|
|
||||||
import re
|
import re
|
||||||
|
|
||||||
from PyQt5 import QtCore
|
from PyQt5 import QtCore
|
||||||
@ -37,7 +36,6 @@ from openlp.core.lib import Plugin, StringContent, build_icon
|
|||||||
from openlp.plugins.media.endpoint import api_media_endpoint, media_endpoint
|
from openlp.plugins.media.endpoint import api_media_endpoint, media_endpoint
|
||||||
from openlp.plugins.media.lib import MediaMediaItem, MediaTab
|
from openlp.plugins.media.lib import MediaMediaItem, MediaTab
|
||||||
|
|
||||||
|
|
||||||
log = logging.getLogger(__name__)
|
log = logging.getLogger(__name__)
|
||||||
|
|
||||||
|
|
||||||
|
@ -21,11 +21,10 @@
|
|||||||
###############################################################################
|
###############################################################################
|
||||||
import logging
|
import logging
|
||||||
|
|
||||||
from openlp.core.api.http.endpoint import Endpoint
|
|
||||||
from openlp.core.api.http.errors import NotFound
|
|
||||||
from openlp.core.api.endpoint.pluginhelpers import search, live, service, display_thumbnails
|
from openlp.core.api.endpoint.pluginhelpers import search, live, service, display_thumbnails
|
||||||
from openlp.core.api.http import requires_auth
|
from openlp.core.api.http import requires_auth
|
||||||
|
from openlp.core.api.http.endpoint import Endpoint
|
||||||
|
from openlp.core.api.http.errors import NotFound
|
||||||
|
|
||||||
log = logging.getLogger(__name__)
|
log = logging.getLogger(__name__)
|
||||||
|
|
||||||
|
@ -24,7 +24,7 @@ import logging
|
|||||||
from PyQt5 import QtCore, QtGui, QtWidgets
|
from PyQt5 import QtCore, QtGui, QtWidgets
|
||||||
|
|
||||||
from openlp.core.common.i18n import UiStrings, translate, get_natural_key
|
from openlp.core.common.i18n import UiStrings, translate, get_natural_key
|
||||||
from openlp.core.common.path import Path, path_to_str, str_to_path
|
from openlp.core.common.path import path_to_str, str_to_path
|
||||||
from openlp.core.common.registry import Registry
|
from openlp.core.common.registry import Registry
|
||||||
from openlp.core.common.settings import Settings
|
from openlp.core.common.settings import Settings
|
||||||
from openlp.core.lib import MediaManagerItem, ItemCapabilities, ServiceItemContext, \
|
from openlp.core.lib import MediaManagerItem, ItemCapabilities, ServiceItemContext, \
|
||||||
|
@ -24,9 +24,9 @@ import logging
|
|||||||
|
|
||||||
from PyQt5 import QtCore
|
from PyQt5 import QtCore
|
||||||
|
|
||||||
|
from openlp.core.common.path import Path
|
||||||
from openlp.core.common.registry import Registry
|
from openlp.core.common.registry import Registry
|
||||||
from openlp.core.common.settings import Settings
|
from openlp.core.common.settings import Settings
|
||||||
from openlp.core.common.path import Path
|
|
||||||
from openlp.core.lib import ServiceItemContext
|
from openlp.core.lib import ServiceItemContext
|
||||||
from openlp.core.ui import HideMode
|
from openlp.core.ui import HideMode
|
||||||
from openlp.plugins.presentations.lib.pdfcontroller import PDF_CONTROLLER_FILETYPES
|
from openlp.plugins.presentations.lib.pdfcontroller import PDF_CONTROLLER_FILETYPES
|
||||||
|
@ -20,8 +20,8 @@
|
|||||||
# Temple Place, Suite 330, Boston, MA 02111-1307 USA #
|
# Temple Place, Suite 330, Boston, MA 02111-1307 USA #
|
||||||
###############################################################################
|
###############################################################################
|
||||||
import logging
|
import logging
|
||||||
import zipfile
|
|
||||||
import re
|
import re
|
||||||
|
import zipfile
|
||||||
from xml.etree import ElementTree
|
from xml.etree import ElementTree
|
||||||
|
|
||||||
from openlp.core.common import is_win
|
from openlp.core.common import is_win
|
||||||
|
@ -21,10 +21,11 @@
|
|||||||
###############################################################################
|
###############################################################################
|
||||||
|
|
||||||
import sys
|
import sys
|
||||||
from PyQt5 import QtWidgets
|
|
||||||
from ctypes import *
|
from ctypes import *
|
||||||
from ctypes.wintypes import RECT
|
from ctypes.wintypes import RECT
|
||||||
|
|
||||||
|
from PyQt5 import QtWidgets
|
||||||
|
|
||||||
|
|
||||||
class PPTViewer(QtWidgets.QWidget):
|
class PPTViewer(QtWidgets.QWidget):
|
||||||
"""
|
"""
|
||||||
|
@ -23,8 +23,8 @@
|
|||||||
The :mod:`openlp.plugins.presentations.presentationplugin` module provides the ability for OpenLP to display
|
The :mod:`openlp.plugins.presentations.presentationplugin` module provides the ability for OpenLP to display
|
||||||
presentations from a variety of document formats.
|
presentations from a variety of document formats.
|
||||||
"""
|
"""
|
||||||
import os
|
|
||||||
import logging
|
import logging
|
||||||
|
import os
|
||||||
|
|
||||||
from PyQt5 import QtCore
|
from PyQt5 import QtCore
|
||||||
|
|
||||||
|
@ -21,11 +21,10 @@
|
|||||||
###############################################################################
|
###############################################################################
|
||||||
import logging
|
import logging
|
||||||
|
|
||||||
from openlp.core.api.http.endpoint import Endpoint
|
|
||||||
from openlp.core.api.http.errors import NotFound
|
|
||||||
from openlp.core.api.endpoint.pluginhelpers import search, live, service
|
from openlp.core.api.endpoint.pluginhelpers import search, live, service
|
||||||
from openlp.core.api.http import requires_auth
|
from openlp.core.api.http import requires_auth
|
||||||
|
from openlp.core.api.http.endpoint import Endpoint
|
||||||
|
from openlp.core.api.http.errors import NotFound
|
||||||
|
|
||||||
log = logging.getLogger(__name__)
|
log = logging.getLogger(__name__)
|
||||||
|
|
||||||
|
@ -32,9 +32,9 @@ from openlp.core.common.i18n import translate
|
|||||||
from openlp.core.common.mixins import RegistryProperties
|
from openlp.core.common.mixins import RegistryProperties
|
||||||
from openlp.core.common.registry import Registry
|
from openlp.core.common.registry import Registry
|
||||||
from openlp.core.widgets.wizard import OpenLPWizard, WizardStrings
|
from openlp.core.widgets.wizard import OpenLPWizard, WizardStrings
|
||||||
|
from openlp.plugins.songs.forms.songreviewwidget import SongReviewWidget
|
||||||
from openlp.plugins.songs.lib import delete_song
|
from openlp.plugins.songs.lib import delete_song
|
||||||
from openlp.plugins.songs.lib.db import Song
|
from openlp.plugins.songs.lib.db import Song
|
||||||
from openlp.plugins.songs.forms.songreviewwidget import SongReviewWidget
|
|
||||||
from openlp.plugins.songs.lib.songcompare import songs_probably_equal
|
from openlp.plugins.songs.lib.songcompare import songs_probably_equal
|
||||||
|
|
||||||
log = logging.getLogger(__name__)
|
log = logging.getLogger(__name__)
|
||||||
|
@ -30,8 +30,8 @@ from PyQt5 import QtCore, QtWidgets
|
|||||||
|
|
||||||
from openlp.core.common.applocation import AppLocation
|
from openlp.core.common.applocation import AppLocation
|
||||||
from openlp.core.common.i18n import UiStrings, translate, get_natural_key
|
from openlp.core.common.i18n import UiStrings, translate, get_natural_key
|
||||||
from openlp.core.common.path import create_paths, copyfile
|
|
||||||
from openlp.core.common.mixins import RegistryProperties
|
from openlp.core.common.mixins import RegistryProperties
|
||||||
|
from openlp.core.common.path import create_paths, copyfile
|
||||||
from openlp.core.common.registry import Registry
|
from openlp.core.common.registry import Registry
|
||||||
from openlp.core.lib import PluginStatus, MediaType, create_separated_list
|
from openlp.core.lib import PluginStatus, MediaType, create_separated_list
|
||||||
from openlp.core.lib.ui import set_case_insensitive_completer, critical_error_message_box, find_and_set_in_combo_box
|
from openlp.core.lib.ui import set_case_insensitive_completer, critical_error_message_box, find_and_set_in_combo_box
|
||||||
|
@ -22,8 +22,8 @@
|
|||||||
|
|
||||||
from PyQt5 import QtWidgets
|
from PyQt5 import QtWidgets
|
||||||
|
|
||||||
from openlp.core.common.settings import Settings
|
|
||||||
from openlp.core.common.i18n import UiStrings, translate
|
from openlp.core.common.i18n import UiStrings, translate
|
||||||
|
from openlp.core.common.settings import Settings
|
||||||
from openlp.core.lib import build_icon
|
from openlp.core.lib import build_icon
|
||||||
from openlp.core.lib.ui import create_button_box
|
from openlp.core.lib.ui import create_button_box
|
||||||
from openlp.core.widgets.edits import SpellTextEdit
|
from openlp.core.widgets.edits import SpellTextEdit
|
||||||
|
@ -20,14 +20,14 @@
|
|||||||
# Temple Place, Suite 330, Boston, MA 02111-1307 USA #
|
# Temple Place, Suite 330, Boston, MA 02111-1307 USA #
|
||||||
###############################################################################
|
###############################################################################
|
||||||
|
|
||||||
import re
|
|
||||||
import logging
|
import logging
|
||||||
|
import re
|
||||||
|
|
||||||
from PyQt5 import QtCore, QtGui, QtWidgets
|
from PyQt5 import QtCore, QtGui, QtWidgets
|
||||||
|
|
||||||
from openlp.core.lib.ui import critical_error_message_box
|
|
||||||
from openlp.core.common.i18n import translate
|
from openlp.core.common.i18n import translate
|
||||||
from openlp.core.common.settings import Settings
|
from openlp.core.common.settings import Settings
|
||||||
|
from openlp.core.lib.ui import critical_error_message_box
|
||||||
from openlp.plugins.songs.forms.editversedialog import Ui_EditVerseDialog
|
from openlp.plugins.songs.forms.editversedialog import Ui_EditVerseDialog
|
||||||
from openlp.plugins.songs.lib import VerseType, transpose_lyrics
|
from openlp.plugins.songs.lib import VerseType, transpose_lyrics
|
||||||
|
|
||||||
|
@ -21,7 +21,6 @@
|
|||||||
###############################################################################
|
###############################################################################
|
||||||
|
|
||||||
import logging
|
import logging
|
||||||
import os
|
|
||||||
|
|
||||||
from PyQt5 import QtCore, QtWidgets
|
from PyQt5 import QtCore, QtWidgets
|
||||||
|
|
||||||
|
@ -29,8 +29,8 @@ from openlp.core.common.mixins import RegistryProperties
|
|||||||
from openlp.core.common.registry import Registry
|
from openlp.core.common.registry import Registry
|
||||||
from openlp.core.lib.ui import critical_error_message_box
|
from openlp.core.lib.ui import critical_error_message_box
|
||||||
from openlp.plugins.songs.forms.authorsform import AuthorsForm
|
from openlp.plugins.songs.forms.authorsform import AuthorsForm
|
||||||
from openlp.plugins.songs.forms.topicsform import TopicsForm
|
|
||||||
from openlp.plugins.songs.forms.songbookform import SongBookForm
|
from openlp.plugins.songs.forms.songbookform import SongBookForm
|
||||||
|
from openlp.plugins.songs.forms.topicsform import TopicsForm
|
||||||
from openlp.plugins.songs.lib.db import Author, Book, Topic, Song
|
from openlp.plugins.songs.lib.db import Author, Book, Topic, Song
|
||||||
from .songmaintenancedialog import Ui_SongMaintenanceDialog
|
from .songmaintenancedialog import Ui_SongMaintenanceDialog
|
||||||
|
|
||||||
|
@ -27,28 +27,28 @@ import logging
|
|||||||
from openlp.core.common import is_win
|
from openlp.core.common import is_win
|
||||||
from openlp.core.common.i18n import UiStrings, translate
|
from openlp.core.common.i18n import UiStrings, translate
|
||||||
from openlp.core.widgets.wizard import WizardStrings
|
from openlp.core.widgets.wizard import WizardStrings
|
||||||
from .importers.opensong import OpenSongImport
|
from .importers.cclifile import CCLIFileImport
|
||||||
|
from .importers.chordpro import ChordProImport
|
||||||
|
from .importers.dreambeam import DreamBeamImport
|
||||||
from .importers.easyslides import EasySlidesImport
|
from .importers.easyslides import EasySlidesImport
|
||||||
|
from .importers.easyworship import EasyWorshipSongImport
|
||||||
|
from .importers.foilpresenter import FoilPresenterImport
|
||||||
|
from .importers.lyrix import LyrixImport
|
||||||
from .importers.openlp import OpenLPSongImport
|
from .importers.openlp import OpenLPSongImport
|
||||||
from .importers.openlyrics import OpenLyricsImport
|
from .importers.openlyrics import OpenLyricsImport
|
||||||
from .importers.wordsofworship import WordsOfWorshipImport
|
from .importers.opensong import OpenSongImport
|
||||||
from .importers.cclifile import CCLIFileImport
|
|
||||||
from .importers.dreambeam import DreamBeamImport
|
|
||||||
from .importers.powersong import PowerSongImport
|
|
||||||
from .importers.easyworship import EasyWorshipSongImport
|
|
||||||
from .importers.songbeamer import SongBeamerImport
|
|
||||||
from .importers.songshowplus import SongShowPlusImport
|
|
||||||
from .importers.songpro import SongProImport
|
|
||||||
from .importers.sundayplus import SundayPlusImport
|
|
||||||
from .importers.foilpresenter import FoilPresenterImport
|
|
||||||
from .importers.zionworx import ZionWorxImport
|
|
||||||
from .importers.propresenter import ProPresenterImport
|
|
||||||
from .importers.worshipassistant import WorshipAssistantImport
|
|
||||||
from .importers.powerpraise import PowerPraiseImport
|
from .importers.powerpraise import PowerPraiseImport
|
||||||
|
from .importers.powersong import PowerSongImport
|
||||||
from .importers.presentationmanager import PresentationManagerImport
|
from .importers.presentationmanager import PresentationManagerImport
|
||||||
from .importers.lyrix import LyrixImport
|
from .importers.propresenter import ProPresenterImport
|
||||||
|
from .importers.songbeamer import SongBeamerImport
|
||||||
|
from .importers.songpro import SongProImport
|
||||||
|
from .importers.songshowplus import SongShowPlusImport
|
||||||
|
from .importers.sundayplus import SundayPlusImport
|
||||||
from .importers.videopsalm import VideoPsalmImport
|
from .importers.videopsalm import VideoPsalmImport
|
||||||
from .importers.chordpro import ChordProImport
|
from .importers.wordsofworship import WordsOfWorshipImport
|
||||||
|
from .importers.worshipassistant import WorshipAssistantImport
|
||||||
|
from .importers.zionworx import ZionWorxImport
|
||||||
|
|
||||||
log = logging.getLogger(__name__)
|
log = logging.getLogger(__name__)
|
||||||
|
|
||||||
|
@ -1,6 +1,9 @@
|
|||||||
# -*- coding: utf-8 -*-
|
# -*- coding: utf-8 -*-
|
||||||
# vim: autoindent shiftwidth=4 expandtab textwidth=120 tabstop=4 softtabstop=4
|
# vim: autoindent shiftwidth=4 expandtab textwidth=120 tabstop=4 softtabstop=4
|
||||||
|
|
||||||
|
import codecs
|
||||||
|
import logging
|
||||||
|
|
||||||
###############################################################################
|
###############################################################################
|
||||||
# OpenLP - Open Source Lyrics Projection #
|
# OpenLP - Open Source Lyrics Projection #
|
||||||
# --------------------------------------------------------------------------- #
|
# --------------------------------------------------------------------------- #
|
||||||
@ -20,8 +23,6 @@
|
|||||||
# Temple Place, Suite 330, Boston, MA 02111-1307 USA #
|
# Temple Place, Suite 330, Boston, MA 02111-1307 USA #
|
||||||
###############################################################################
|
###############################################################################
|
||||||
import chardet
|
import chardet
|
||||||
import codecs
|
|
||||||
import logging
|
|
||||||
|
|
||||||
from openlp.core.common.i18n import translate
|
from openlp.core.common.i18n import translate
|
||||||
from openlp.plugins.songs.lib import VerseType
|
from openlp.plugins.songs.lib import VerseType
|
||||||
|
@ -25,11 +25,10 @@ The :mod:`easyworship` module provides the functionality for importing EasyWorsh
|
|||||||
import logging
|
import logging
|
||||||
import os
|
import os
|
||||||
import re
|
import re
|
||||||
|
import sqlite3
|
||||||
import struct
|
import struct
|
||||||
import zlib
|
import zlib
|
||||||
|
|
||||||
import sqlite3
|
|
||||||
|
|
||||||
from openlp.core.common.i18n import translate
|
from openlp.core.common.i18n import translate
|
||||||
from openlp.core.common.path import Path
|
from openlp.core.common.path import Path
|
||||||
from openlp.plugins.songs.lib import VerseType
|
from openlp.plugins.songs.lib import VerseType
|
||||||
|
@ -90,10 +90,10 @@ from lxml import etree, objectify
|
|||||||
from openlp.core.common.i18n import translate
|
from openlp.core.common.i18n import translate
|
||||||
from openlp.core.widgets.wizard import WizardStrings
|
from openlp.core.widgets.wizard import WizardStrings
|
||||||
from openlp.plugins.songs.lib import clean_song, VerseType
|
from openlp.plugins.songs.lib import clean_song, VerseType
|
||||||
from openlp.plugins.songs.lib.importers.songimport import SongImport
|
|
||||||
from openlp.plugins.songs.lib.db import Author, Book, Song, Topic
|
from openlp.plugins.songs.lib.db import Author, Book, Song, Topic
|
||||||
from openlp.plugins.songs.lib.ui import SongStrings
|
from openlp.plugins.songs.lib.importers.songimport import SongImport
|
||||||
from openlp.plugins.songs.lib.openlyricsxml import SongXML
|
from openlp.plugins.songs.lib.openlyricsxml import SongXML
|
||||||
|
from openlp.plugins.songs.lib.ui import SongStrings
|
||||||
|
|
||||||
log = logging.getLogger(__name__)
|
log = logging.getLogger(__name__)
|
||||||
|
|
||||||
|
@ -27,9 +27,10 @@ a MediaShout database into the OpenLP database.
|
|||||||
# WARNING: See https://docs.python.org/3/library/sqlite3.html for value substitution
|
# WARNING: See https://docs.python.org/3/library/sqlite3.html for value substitution
|
||||||
# in SQL statements
|
# in SQL statements
|
||||||
|
|
||||||
import pyodbc
|
|
||||||
import logging
|
import logging
|
||||||
|
|
||||||
|
import pyodbc
|
||||||
|
|
||||||
from openlp.core.common.i18n import translate
|
from openlp.core.common.i18n import translate
|
||||||
from openlp.plugins.songs.lib.importers.songimport import SongImport
|
from openlp.plugins.songs.lib.importers.songimport import SongImport
|
||||||
|
|
||||||
|
@ -29,8 +29,8 @@ from lxml import etree
|
|||||||
|
|
||||||
from openlp.core.widgets.wizard import WizardStrings
|
from openlp.core.widgets.wizard import WizardStrings
|
||||||
from openlp.plugins.songs.lib.importers.songimport import SongImport
|
from openlp.plugins.songs.lib.importers.songimport import SongImport
|
||||||
from openlp.plugins.songs.lib.ui import SongStrings
|
|
||||||
from openlp.plugins.songs.lib.openlyricsxml import OpenLyrics, OpenLyricsError
|
from openlp.plugins.songs.lib.openlyricsxml import OpenLyrics, OpenLyricsError
|
||||||
|
from openlp.plugins.songs.lib.ui import SongStrings
|
||||||
|
|
||||||
log = logging.getLogger(__name__)
|
log = logging.getLogger(__name__)
|
||||||
|
|
||||||
|
@ -29,9 +29,10 @@ a OPS Pro database into the OpenLP database.
|
|||||||
|
|
||||||
import logging
|
import logging
|
||||||
import re
|
import re
|
||||||
import pyodbc
|
|
||||||
import struct
|
import struct
|
||||||
|
|
||||||
|
import pyodbc
|
||||||
|
|
||||||
from openlp.core.common.i18n import translate
|
from openlp.core.common.i18n import translate
|
||||||
from openlp.plugins.songs.lib.importers.songimport import SongImport
|
from openlp.plugins.songs.lib.importers.songimport import SongImport
|
||||||
|
|
||||||
|
@ -27,8 +27,8 @@ import re
|
|||||||
|
|
||||||
from lxml import objectify, etree
|
from lxml import objectify, etree
|
||||||
|
|
||||||
from openlp.core.common.i18n import translate
|
|
||||||
from openlp.core.common import get_file_encoding
|
from openlp.core.common import get_file_encoding
|
||||||
|
from openlp.core.common.i18n import translate
|
||||||
from openlp.core.widgets.wizard import WizardStrings
|
from openlp.core.widgets.wizard import WizardStrings
|
||||||
from openlp.plugins.songs.lib.importers.songimport import SongImport
|
from openlp.plugins.songs.lib.importers.songimport import SongImport
|
||||||
|
|
||||||
|
@ -25,6 +25,7 @@ ProPresenter song files into the current installation database.
|
|||||||
"""
|
"""
|
||||||
import base64
|
import base64
|
||||||
import logging
|
import logging
|
||||||
|
|
||||||
from lxml import objectify
|
from lxml import objectify
|
||||||
|
|
||||||
from openlp.core.widgets.wizard import WizardStrings
|
from openlp.core.widgets.wizard import WizardStrings
|
||||||
|
@ -22,15 +22,15 @@
|
|||||||
"""
|
"""
|
||||||
The :mod:`songbeamer` module provides the functionality for importing SongBeamer songs into the OpenLP database.
|
The :mod:`songbeamer` module provides the functionality for importing SongBeamer songs into the OpenLP database.
|
||||||
"""
|
"""
|
||||||
|
import base64
|
||||||
import logging
|
import logging
|
||||||
|
import math
|
||||||
import os
|
import os
|
||||||
import re
|
import re
|
||||||
import base64
|
|
||||||
import math
|
|
||||||
|
|
||||||
from openlp.core.common import is_win, is_macosx, get_file_encoding
|
from openlp.core.common import is_win, is_macosx, get_file_encoding
|
||||||
from openlp.core.common.settings import Settings
|
|
||||||
from openlp.core.common.path import Path
|
from openlp.core.common.path import Path
|
||||||
|
from openlp.core.common.settings import Settings
|
||||||
from openlp.plugins.songs.lib import VerseType
|
from openlp.plugins.songs.lib import VerseType
|
||||||
from openlp.plugins.songs.lib.importers.songimport import SongImport
|
from openlp.plugins.songs.lib.importers.songimport import SongImport
|
||||||
|
|
||||||
|
@ -33,8 +33,8 @@ from openlp.core.common.registry import Registry
|
|||||||
from openlp.core.widgets.wizard import WizardStrings
|
from openlp.core.widgets.wizard import WizardStrings
|
||||||
from openlp.plugins.songs.lib import clean_song, VerseType
|
from openlp.plugins.songs.lib import clean_song, VerseType
|
||||||
from openlp.plugins.songs.lib.db import Song, Author, Topic, Book, MediaFile
|
from openlp.plugins.songs.lib.db import Song, Author, Topic, Book, MediaFile
|
||||||
from openlp.plugins.songs.lib.ui import SongStrings
|
|
||||||
from openlp.plugins.songs.lib.openlyricsxml import SongXML
|
from openlp.plugins.songs.lib.openlyricsxml import SongXML
|
||||||
|
from openlp.plugins.songs.lib.ui import SongStrings
|
||||||
|
|
||||||
log = logging.getLogger(__name__)
|
log = logging.getLogger(__name__)
|
||||||
|
|
||||||
|
@ -27,13 +27,11 @@
|
|||||||
# http://wiki.services.openoffice.org/wiki/Python
|
# http://wiki.services.openoffice.org/wiki/Python
|
||||||
|
|
||||||
import logging
|
import logging
|
||||||
import os
|
|
||||||
import re
|
import re
|
||||||
|
|
||||||
from openlp.core.common import is_win
|
from openlp.core.common import is_win
|
||||||
from .openoffice import OpenOfficeImport
|
from .openoffice import OpenOfficeImport
|
||||||
|
|
||||||
|
|
||||||
log = logging.getLogger(__name__)
|
log = logging.getLogger(__name__)
|
||||||
|
|
||||||
if is_win():
|
if is_win():
|
||||||
|
@ -19,7 +19,6 @@
|
|||||||
# with this program; if not, write to the Free Software Foundation, Inc., 59 #
|
# with this program; if not, write to the Free Software Foundation, Inc., 59 #
|
||||||
# Temple Place, Suite 330, Boston, MA 02111-1307 USA #
|
# Temple Place, Suite 330, Boston, MA 02111-1307 USA #
|
||||||
###############################################################################
|
###############################################################################
|
||||||
import os
|
|
||||||
import re
|
import re
|
||||||
|
|
||||||
from openlp.plugins.songs.lib import VerseType, retrieve_windows_encoding
|
from openlp.plugins.songs.lib import VerseType, retrieve_windows_encoding
|
||||||
|
@ -27,10 +27,10 @@ import logging
|
|||||||
import re
|
import re
|
||||||
|
|
||||||
from openlp.core.common.i18n import translate
|
from openlp.core.common.i18n import translate
|
||||||
from openlp.core.common.settings import Settings
|
|
||||||
from openlp.core.common.path import Path
|
from openlp.core.common.path import Path
|
||||||
from openlp.plugins.songs.lib.importers.songimport import SongImport
|
from openlp.core.common.settings import Settings
|
||||||
from openlp.plugins.songs.lib.db import AuthorType
|
from openlp.plugins.songs.lib.db import AuthorType
|
||||||
|
from openlp.plugins.songs.lib.importers.songimport import SongImport
|
||||||
|
|
||||||
log = logging.getLogger(__name__)
|
log = logging.getLogger(__name__)
|
||||||
|
|
||||||
|
@ -23,9 +23,8 @@
|
|||||||
The :mod:`wordsofworship` module provides the functionality for importing Words of
|
The :mod:`wordsofworship` module provides the functionality for importing Words of
|
||||||
Worship songs into the OpenLP database.
|
Worship songs into the OpenLP database.
|
||||||
"""
|
"""
|
||||||
import os
|
|
||||||
import logging
|
import logging
|
||||||
from openlp.core.common.path import Path
|
import os
|
||||||
|
|
||||||
from openlp.core.common.i18n import translate
|
from openlp.core.common.i18n import translate
|
||||||
from openlp.plugins.songs.lib.importers.songimport import SongImport
|
from openlp.plugins.songs.lib.importers.songimport import SongImport
|
||||||
|
@ -25,6 +25,7 @@ a WorshipCenter Pro database into the OpenLP database.
|
|||||||
"""
|
"""
|
||||||
import logging
|
import logging
|
||||||
import re
|
import re
|
||||||
|
|
||||||
import pyodbc
|
import pyodbc
|
||||||
|
|
||||||
from openlp.core.common.i18n import translate
|
from openlp.core.common.i18n import translate
|
||||||
|
@ -29,8 +29,8 @@ from lxml import etree
|
|||||||
|
|
||||||
from openlp.core.common import clean_filename
|
from openlp.core.common import clean_filename
|
||||||
from openlp.core.common.i18n import translate
|
from openlp.core.common.i18n import translate
|
||||||
from openlp.core.common.path import create_paths
|
|
||||||
from openlp.core.common.mixins import RegistryProperties
|
from openlp.core.common.mixins import RegistryProperties
|
||||||
|
from openlp.core.common.path import create_paths
|
||||||
from openlp.plugins.songs.lib.openlyricsxml import OpenLyrics
|
from openlp.plugins.songs.lib.openlyricsxml import OpenLyrics
|
||||||
|
|
||||||
log = logging.getLogger(__name__)
|
log = logging.getLogger(__name__)
|
||||||
|
@ -63,8 +63,8 @@ from lxml import etree, objectify
|
|||||||
|
|
||||||
from openlp.core.common.i18n import translate
|
from openlp.core.common.i18n import translate
|
||||||
from openlp.core.common.settings import Settings
|
from openlp.core.common.settings import Settings
|
||||||
from openlp.core.version import get_version
|
|
||||||
from openlp.core.lib import FormattingTags
|
from openlp.core.lib import FormattingTags
|
||||||
|
from openlp.core.version import get_version
|
||||||
from openlp.plugins.songs.lib import VerseType, clean_song
|
from openlp.plugins.songs.lib import VerseType, clean_song
|
||||||
from openlp.plugins.songs.lib.db import Author, AuthorType, Book, Song, Topic
|
from openlp.plugins.songs.lib.db import Author, AuthorType, Book, Song, Topic
|
||||||
|
|
||||||
|
@ -25,11 +25,11 @@ The :mod:`~openlp.plugins.songs.lib.songselect` module contains the SongSelect i
|
|||||||
import logging
|
import logging
|
||||||
import random
|
import random
|
||||||
import re
|
import re
|
||||||
|
from html import unescape
|
||||||
|
from html.parser import HTMLParser
|
||||||
from http.cookiejar import CookieJar
|
from http.cookiejar import CookieJar
|
||||||
from urllib.parse import urlencode
|
from urllib.parse import urlencode
|
||||||
from urllib.request import HTTPCookieProcessor, URLError, build_opener
|
from urllib.request import HTTPCookieProcessor, URLError, build_opener
|
||||||
from html.parser import HTMLParser
|
|
||||||
from html import unescape
|
|
||||||
|
|
||||||
from bs4 import BeautifulSoup, NavigableString
|
from bs4 import BeautifulSoup, NavigableString
|
||||||
|
|
||||||
|
@ -25,7 +25,6 @@ for the Songs plugin.
|
|||||||
"""
|
"""
|
||||||
|
|
||||||
import logging
|
import logging
|
||||||
import os
|
|
||||||
import sqlite3
|
import sqlite3
|
||||||
from pathlib import Path
|
from pathlib import Path
|
||||||
from tempfile import gettempdir
|
from tempfile import gettempdir
|
||||||
|
@ -24,8 +24,8 @@ from PyQt5 import QtCore, QtWidgets
|
|||||||
|
|
||||||
from openlp.core.common.i18n import translate
|
from openlp.core.common.i18n import translate
|
||||||
from openlp.core.common.mixins import RegistryProperties
|
from openlp.core.common.mixins import RegistryProperties
|
||||||
from openlp.plugins.songusage.lib.db import SongUsageItem
|
|
||||||
from openlp.plugins.songusage.forms.songusagedeletedialog import Ui_SongUsageDeleteDialog
|
from openlp.plugins.songusage.forms.songusagedeletedialog import Ui_SongUsageDeleteDialog
|
||||||
|
from openlp.plugins.songusage.lib.db import SongUsageItem
|
||||||
|
|
||||||
|
|
||||||
class SongUsageDeleteForm(QtWidgets.QDialog, Ui_SongUsageDeleteDialog, RegistryProperties):
|
class SongUsageDeleteForm(QtWidgets.QDialog, Ui_SongUsageDeleteDialog, RegistryProperties):
|
||||||
|
@ -26,8 +26,8 @@ from sqlalchemy.sql import and_
|
|||||||
|
|
||||||
from openlp.core.common.i18n import translate
|
from openlp.core.common.i18n import translate
|
||||||
from openlp.core.common.mixins import RegistryProperties
|
from openlp.core.common.mixins import RegistryProperties
|
||||||
from openlp.core.common.settings import Settings
|
|
||||||
from openlp.core.common.path import create_paths
|
from openlp.core.common.path import create_paths
|
||||||
|
from openlp.core.common.settings import Settings
|
||||||
from openlp.core.lib.ui import critical_error_message_box
|
from openlp.core.lib.ui import critical_error_message_box
|
||||||
from openlp.plugins.songusage.lib.db import SongUsageItem
|
from openlp.plugins.songusage.lib.db import SongUsageItem
|
||||||
from .songusagedetaildialog import Ui_SongUsageDetailDialog
|
from .songusagedetaildialog import Ui_SongUsageDetailDialog
|
||||||
|
Loading…
Reference in New Issue
Block a user