forked from openlp/openlp
commit
d50a41b904
1
cnvdb.py
1
cnvdb.py
|
@ -25,7 +25,6 @@
|
||||||
|
|
||||||
import codecs
|
import codecs
|
||||||
import sys
|
import sys
|
||||||
import chardet
|
|
||||||
|
|
||||||
def convert_file(inname, outname):
|
def convert_file(inname, outname):
|
||||||
"""
|
"""
|
||||||
|
|
2
demo.py
2
demo.py
|
@ -25,7 +25,7 @@
|
||||||
import sys
|
import sys
|
||||||
import time
|
import time
|
||||||
|
|
||||||
from PyQt4 import QtGui, QtCore
|
from PyQt4 import QtGui
|
||||||
|
|
||||||
from openlp.core import Renderer
|
from openlp.core import Renderer
|
||||||
from openlp.theme import Theme
|
from openlp.theme import Theme
|
||||||
|
|
|
@ -11,7 +11,8 @@
|
||||||
# All configuration values have a default; values that are commented out
|
# All configuration values have a default; values that are commented out
|
||||||
# serve to show the default.
|
# serve to show the default.
|
||||||
|
|
||||||
import sys, os
|
import os
|
||||||
|
import sys
|
||||||
|
|
||||||
# If extensions (or modules to document with autodoc) are in another directory,
|
# If extensions (or modules to document with autodoc) are in another directory,
|
||||||
# add these directories to sys.path here. If the directory is relative to the
|
# add these directories to sys.path here. If the directory is relative to the
|
||||||
|
|
|
@ -22,12 +22,9 @@
|
||||||
# Temple Place, Suite 330, Boston, MA 02111-1307 USA #
|
# Temple Place, Suite 330, Boston, MA 02111-1307 USA #
|
||||||
###############################################################################
|
###############################################################################
|
||||||
|
|
||||||
import types
|
|
||||||
|
|
||||||
from PyQt4 import QtCore, QtGui
|
from PyQt4 import QtCore, QtGui
|
||||||
|
|
||||||
from openlp.core.lib.toolbar import *
|
from openlp.core.lib.toolbar import *
|
||||||
from openlp.core.lib import translate
|
|
||||||
|
|
||||||
class BaseListWithDnD(QtGui.QListWidget):
|
class BaseListWithDnD(QtGui.QListWidget):
|
||||||
"""
|
"""
|
||||||
|
|
|
@ -22,10 +22,9 @@
|
||||||
# Temple Place, Suite 330, Boston, MA 02111-1307 USA #
|
# Temple Place, Suite 330, Boston, MA 02111-1307 USA #
|
||||||
###############################################################################
|
###############################################################################
|
||||||
|
|
||||||
import types
|
|
||||||
import logging
|
import logging
|
||||||
|
|
||||||
from PyQt4 import QtCore, QtGui
|
from PyQt4 import QtGui
|
||||||
|
|
||||||
class OpenLPDockWidget(QtGui.QDockWidget):
|
class OpenLPDockWidget(QtGui.QDockWidget):
|
||||||
"""
|
"""
|
||||||
|
|
|
@ -23,8 +23,6 @@
|
||||||
###############################################################################
|
###############################################################################
|
||||||
|
|
||||||
import logging
|
import logging
|
||||||
import os
|
|
||||||
import sys
|
|
||||||
|
|
||||||
from PyQt4 import QtGui, QtCore
|
from PyQt4 import QtGui, QtCore
|
||||||
|
|
||||||
|
|
|
@ -23,9 +23,6 @@
|
||||||
###############################################################################
|
###############################################################################
|
||||||
|
|
||||||
import logging
|
import logging
|
||||||
import os
|
|
||||||
import sys
|
|
||||||
import linecache
|
|
||||||
|
|
||||||
from PyQt4 import QtGui, QtCore
|
from PyQt4 import QtGui, QtCore
|
||||||
|
|
||||||
|
|
|
@ -24,9 +24,8 @@
|
||||||
|
|
||||||
import logging
|
import logging
|
||||||
import os
|
import os
|
||||||
import time
|
|
||||||
|
|
||||||
from PyQt4 import QtCore, QtGui
|
from PyQt4 import QtGui
|
||||||
|
|
||||||
from openlp.core.lib import buildIcon
|
from openlp.core.lib import buildIcon
|
||||||
|
|
||||||
|
|
|
@ -22,7 +22,7 @@
|
||||||
# Temple Place, Suite 330, Boston, MA 02111-1307 USA #
|
# Temple Place, Suite 330, Boston, MA 02111-1307 USA #
|
||||||
###############################################################################
|
###############################################################################
|
||||||
|
|
||||||
from PyQt4 import QtCore, QtGui
|
from PyQt4 import QtGui
|
||||||
|
|
||||||
from openlp.core.lib import PluginConfig
|
from openlp.core.lib import PluginConfig
|
||||||
|
|
||||||
|
|
|
@ -25,7 +25,7 @@
|
||||||
import os
|
import os
|
||||||
|
|
||||||
from xml.dom.minidom import Document
|
from xml.dom.minidom import Document
|
||||||
from xml.etree.ElementTree import ElementTree, XML, dump
|
from xml.etree.ElementTree import ElementTree, XML
|
||||||
|
|
||||||
from openlp.core.lib import str_to_bool
|
from openlp.core.lib import str_to_bool
|
||||||
|
|
||||||
|
|
|
@ -22,9 +22,8 @@
|
||||||
# Temple Place, Suite 330, Boston, MA 02111-1307 USA #
|
# Temple Place, Suite 330, Boston, MA 02111-1307 USA #
|
||||||
###############################################################################
|
###############################################################################
|
||||||
|
|
||||||
import platform
|
|
||||||
import sys
|
|
||||||
import os
|
import os
|
||||||
|
import sys
|
||||||
from types import StringType, NoneType, UnicodeType
|
from types import StringType, NoneType, UnicodeType
|
||||||
|
|
||||||
from xml.etree.ElementTree import ElementTree, XML
|
from xml.etree.ElementTree import ElementTree, XML
|
||||||
|
|
|
@ -1,5 +1,11 @@
|
||||||
from PyQt4 import QtCore, QtGui
|
|
||||||
import logging
|
import logging
|
||||||
|
import os
|
||||||
|
import sys
|
||||||
|
|
||||||
|
from PyQt4 import QtCore, QtGui
|
||||||
|
|
||||||
|
from openlp.core.lib import MediaManagerItem
|
||||||
|
|
||||||
logging.basicConfig(level=logging.DEBUG,
|
logging.basicConfig(level=logging.DEBUG,
|
||||||
format='%(asctime)s %(name)-30s %(levelname)-8s %(message)s',
|
format='%(asctime)s %(name)-30s %(levelname)-8s %(message)s',
|
||||||
datefmt='%m-%d %H:%M',
|
datefmt='%m-%d %H:%M',
|
||||||
|
@ -12,14 +18,11 @@ formatter = logging.Formatter(u'%(name)24s: %(levelname)-8s %(message)s')
|
||||||
# tell the handler to use this format
|
# tell the handler to use this format
|
||||||
console.setFormatter(formatter)
|
console.setFormatter(formatter)
|
||||||
logging.getLogger(u'').addHandler(console)
|
logging.getLogger(u'').addHandler(console)
|
||||||
log=logging.getLogger(u'')
|
log = logging.getLogger(u'')
|
||||||
|
|
||||||
logging.info(u'Logging started')
|
logging.info(u'Logging started')
|
||||||
import os, sys
|
mypath = os.path.split(os.path.abspath(__file__))[0]
|
||||||
mypath=os.path.split(os.path.abspath(__file__))[0]
|
|
||||||
|
|
||||||
sys.path.insert(0,(os.path.join(mypath, '..' ,'..', '..')))
|
sys.path.insert(0,(os.path.join(mypath, '..' ,'..', '..')))
|
||||||
from openlp.core.lib import MediaManagerItem
|
|
||||||
class TestMediaManager:
|
class TestMediaManager:
|
||||||
def setup_class(self):
|
def setup_class(self):
|
||||||
self.app = QtGui.QApplication([])
|
self.app = QtGui.QApplication([])
|
||||||
|
|
|
@ -1,5 +1,7 @@
|
||||||
import logging
|
import logging
|
||||||
import os, sys
|
import os
|
||||||
|
import sys
|
||||||
|
|
||||||
from openlp.core.lib.pluginmanager import PluginManager
|
from openlp.core.lib.pluginmanager import PluginManager
|
||||||
|
|
||||||
logging.basicConfig(level=logging.DEBUG,
|
logging.basicConfig(level=logging.DEBUG,
|
||||||
|
@ -14,11 +16,9 @@ formatter = logging.Formatter(u'%(name)-12s: %(levelname)-8s %(message)s')
|
||||||
# tell the handler to use this format
|
# tell the handler to use this format
|
||||||
console.setFormatter(formatter)
|
console.setFormatter(formatter)
|
||||||
logging.getLogger(u'').addHandler(console)
|
logging.getLogger(u'').addHandler(console)
|
||||||
log=logging.getLogger(u'')
|
log = logging.getLogger(u'')
|
||||||
|
|
||||||
logging.info(u'Logging started')
|
logging.info(u'Logging started')
|
||||||
mypath=os.path.split(os.path.abspath(__file__))[0]
|
mypath = os.path.split(os.path.abspath(__file__))[0]
|
||||||
|
|
||||||
sys.path.insert(0,(os.path.join(mypath, '..' ,'..', '..')))
|
sys.path.insert(0,(os.path.join(mypath, '..' ,'..', '..')))
|
||||||
|
|
||||||
# test the plugin manager with some plugins in the test_plugins directory
|
# test the plugin manager with some plugins in the test_plugins directory
|
||||||
|
|
|
@ -16,9 +16,9 @@ this program; if not, write to the Free Software Foundation, Inc., 59 Temple
|
||||||
Place, Suite 330, Boston, MA 02111-1307 USA
|
Place, Suite 330, Boston, MA 02111-1307 USA
|
||||||
"""
|
"""
|
||||||
|
|
||||||
import time
|
|
||||||
import sys
|
import sys
|
||||||
import os, os.path
|
import os, os.path
|
||||||
|
|
||||||
from PyQt4 import QtGui, QtCore
|
from PyQt4 import QtGui, QtCore
|
||||||
|
|
||||||
from openlp.core.theme import Theme
|
from openlp.core.theme import Theme
|
||||||
|
|
|
@ -21,7 +21,6 @@ import os
|
||||||
from PyQt4 import QtGui, QtCore
|
from PyQt4 import QtGui, QtCore
|
||||||
|
|
||||||
from openlp.core.theme import Theme
|
from openlp.core.theme import Theme
|
||||||
from openlp.core import Renderer
|
|
||||||
from test_render import TestRender_base, whoami
|
from test_render import TestRender_base, whoami
|
||||||
|
|
||||||
pypath = os.path.split(os.path.abspath(__file__))[0]
|
pypath = os.path.split(os.path.abspath(__file__))[0]
|
||||||
|
|
|
@ -22,10 +22,9 @@
|
||||||
# Temple Place, Suite 330, Boston, MA 02111-1307 USA #
|
# Temple Place, Suite 330, Boston, MA 02111-1307 USA #
|
||||||
###############################################################################
|
###############################################################################
|
||||||
|
|
||||||
import platform
|
|
||||||
import types
|
import types
|
||||||
from xml.etree.ElementTree import ElementTree, XML
|
|
||||||
|
|
||||||
|
from xml.etree.ElementTree import ElementTree, XML
|
||||||
from PyQt4 import QtGui
|
from PyQt4 import QtGui
|
||||||
|
|
||||||
DelphiColors={"clRed":0xFF0000,
|
DelphiColors={"clRed":0xFF0000,
|
||||||
|
|
|
@ -38,6 +38,6 @@ from servicemanager import ServiceManager
|
||||||
from thememanager import ThemeManager
|
from thememanager import ThemeManager
|
||||||
from mainwindow import MainWindow
|
from mainwindow import MainWindow
|
||||||
|
|
||||||
__all__ = ['SplashScreen', 'AboutForm', 'SettingsForm', 'MasterToolbar',
|
__all__ = ['SplashScreen', 'AboutForm', 'SettingsForm', 'MainWindow',
|
||||||
'MainWindow', 'MainDisplay', 'SlideController', 'ServiceManager',
|
'MainDisplay', 'SlideController', 'ServiceManager', 'ThemeManager',
|
||||||
'ThemeManager', 'AmendThemeForm']
|
'AmendThemeForm']
|
||||||
|
|
|
@ -26,9 +26,8 @@ import logging
|
||||||
import os, os.path
|
import os, os.path
|
||||||
|
|
||||||
from PyQt4 import QtCore, QtGui
|
from PyQt4 import QtCore, QtGui
|
||||||
from openlp.core.lib import ThemeXML, Renderer, file_to_xml, str_to_bool, \
|
|
||||||
translate
|
|
||||||
|
|
||||||
|
from openlp.core.lib import ThemeXML, file_to_xml, translate
|
||||||
from amendthemedialog import Ui_AmendThemeDialog
|
from amendthemedialog import Ui_AmendThemeDialog
|
||||||
|
|
||||||
log = logging.getLogger(u'AmendThemeForm')
|
log = logging.getLogger(u'AmendThemeForm')
|
||||||
|
|
|
@ -25,8 +25,7 @@
|
||||||
import logging
|
import logging
|
||||||
from PyQt4 import QtCore, QtGui
|
from PyQt4 import QtCore, QtGui
|
||||||
|
|
||||||
from time import sleep
|
from openlp.core.lib import Receiver
|
||||||
from openlp.core.lib import translate, Receiver
|
|
||||||
|
|
||||||
class MainDisplay(QtGui.QWidget):
|
class MainDisplay(QtGui.QWidget):
|
||||||
"""
|
"""
|
||||||
|
|
|
@ -30,11 +30,9 @@ from PyQt4 import QtCore, QtGui
|
||||||
from openlp.core.ui import AboutForm, SettingsForm, AlertForm, \
|
from openlp.core.ui import AboutForm, SettingsForm, AlertForm, \
|
||||||
ServiceManager, ThemeManager, MainDisplay, SlideController, \
|
ServiceManager, ThemeManager, MainDisplay, SlideController, \
|
||||||
PluginForm
|
PluginForm
|
||||||
from openlp.core.lib import translate, Plugin, MediaManagerItem, \
|
from openlp.core.lib import translate, RenderManager, PluginConfig, \
|
||||||
SettingsTab, RenderManager, PluginConfig, str_to_bool, OpenLPDockWidget, \
|
OpenLPDockWidget, SettingsManager, PluginManager, Receiver
|
||||||
SettingsManager, PluginManager, Receiver
|
|
||||||
|
|
||||||
from openlp.core.utils import ConfigHelper
|
|
||||||
|
|
||||||
class Ui_MainWindow(object):
|
class Ui_MainWindow(object):
|
||||||
def setupUi(self, MainWindow):
|
def setupUi(self, MainWindow):
|
||||||
|
|
|
@ -23,18 +23,14 @@
|
||||||
###############################################################################
|
###############################################################################
|
||||||
|
|
||||||
import os
|
import os
|
||||||
import sys
|
|
||||||
import string
|
import string
|
||||||
import logging
|
import logging
|
||||||
import cPickle
|
import cPickle
|
||||||
import zipfile
|
import zipfile
|
||||||
import shutil
|
|
||||||
|
|
||||||
from PyQt4 import QtCore, QtGui
|
from PyQt4 import QtCore, QtGui
|
||||||
from openlp.core.lib import PluginConfig, OpenLPToolbar, ServiceItem, \
|
from openlp.core.lib import PluginConfig, OpenLPToolbar, ServiceItem, \
|
||||||
RenderManager, translate, buildIcon, ServiceType, \
|
translate, ServiceType, contextMenuAction, contextMenuSeparator, Receiver
|
||||||
contextMenuAction, contextMenuSeparator, Receiver
|
|
||||||
from openlp.core.utils import ConfigHelper
|
|
||||||
|
|
||||||
class ServiceManagerList(QtGui.QTreeWidget):
|
class ServiceManagerList(QtGui.QTreeWidget):
|
||||||
|
|
||||||
|
|
|
@ -24,9 +24,8 @@
|
||||||
|
|
||||||
import logging
|
import logging
|
||||||
|
|
||||||
from PyQt4 import QtCore, QtGui
|
from PyQt4 import QtGui
|
||||||
|
|
||||||
from openlp.core.lib import SettingsTab
|
|
||||||
from openlp.core.ui import GeneralTab, ThemesTab, AlertsTab
|
from openlp.core.ui import GeneralTab, ThemesTab, AlertsTab
|
||||||
from settingsdialog import Ui_SettingsDialog
|
from settingsdialog import Ui_SettingsDialog
|
||||||
|
|
||||||
|
|
|
@ -23,12 +23,10 @@
|
||||||
###############################################################################
|
###############################################################################
|
||||||
|
|
||||||
import logging
|
import logging
|
||||||
import os
|
|
||||||
import time
|
import time
|
||||||
|
|
||||||
from PyQt4 import QtCore, QtGui
|
from PyQt4 import QtCore, QtGui
|
||||||
from openlp.core.lib import OpenLPToolbar, translate, buildIcon, Receiver, \
|
from openlp.core.lib import OpenLPToolbar, translate, Receiver, ServiceType
|
||||||
ServiceType, RenderManager, SettingsManager
|
|
||||||
|
|
||||||
class SlideList(QtGui.QTableWidget):
|
class SlideList(QtGui.QTableWidget):
|
||||||
"""
|
"""
|
||||||
|
|
|
@ -16,20 +16,18 @@ this program; if not, write to the Free Software Foundation, Inc., 59 Temple
|
||||||
Place, Suite 330, Boston, MA 02111-1307 USA
|
Place, Suite 330, Boston, MA 02111-1307 USA
|
||||||
"""
|
"""
|
||||||
|
|
||||||
import time
|
|
||||||
import sys
|
import sys
|
||||||
import os, os.path
|
import os, os.path
|
||||||
import logging
|
import logging
|
||||||
from PyQt4 import QtGui, QtCore
|
|
||||||
from PyQt4.QtCore import *
|
|
||||||
from PyQt4.QtGui import *
|
|
||||||
|
|
||||||
mypath = os.path.split(os.path.abspath(__file__))[0]
|
from PyQt4 import QtGui
|
||||||
sys.path.insert(0, (os.path.join(mypath, '..', '..', '..', '..')))
|
|
||||||
|
|
||||||
from openlp.core.ui import ServiceManager
|
from openlp.core.ui import ServiceManager
|
||||||
from openlp.plugins.images.lib import ImageServiceItem
|
from openlp.plugins.images.lib import ImageServiceItem
|
||||||
|
|
||||||
|
mypath = os.path.split(os.path.abspath(__file__))[0]
|
||||||
|
sys.path.insert(0, (os.path.join(mypath, '..', '..', '..', '..')))
|
||||||
|
|
||||||
logging.basicConfig(filename='test_service_manager.log', level=logging.INFO,
|
logging.basicConfig(filename='test_service_manager.log', level=logging.INFO,
|
||||||
filemode='w')
|
filemode='w')
|
||||||
|
|
||||||
|
|
|
@ -23,7 +23,6 @@
|
||||||
###############################################################################
|
###############################################################################
|
||||||
|
|
||||||
import os
|
import os
|
||||||
import sys
|
|
||||||
import zipfile
|
import zipfile
|
||||||
import shutil
|
import shutil
|
||||||
import logging
|
import logging
|
||||||
|
@ -31,10 +30,10 @@ import logging
|
||||||
from xml.etree.ElementTree import ElementTree, XML
|
from xml.etree.ElementTree import ElementTree, XML
|
||||||
from PyQt4 import QtCore, QtGui
|
from PyQt4 import QtCore, QtGui
|
||||||
|
|
||||||
from openlp.core.ui import AmendThemeForm, ServiceManager
|
from openlp.core.ui import AmendThemeForm
|
||||||
from openlp.core.theme import Theme
|
from openlp.core.theme import Theme
|
||||||
from openlp.core.lib import PluginConfig, OpenLPToolbar, ThemeXML, Renderer, \
|
from openlp.core.lib import PluginConfig, OpenLPToolbar, ThemeXML, translate, \
|
||||||
translate, str_to_bool, file_to_xml, buildIcon, Receiver
|
str_to_bool, file_to_xml, buildIcon, Receiver
|
||||||
from openlp.core.utils import ConfigHelper
|
from openlp.core.utils import ConfigHelper
|
||||||
|
|
||||||
class ThemeManager(QtGui.QWidget):
|
class ThemeManager(QtGui.QWidget):
|
||||||
|
|
|
@ -23,7 +23,7 @@
|
||||||
###############################################################################
|
###############################################################################
|
||||||
|
|
||||||
import os
|
import os
|
||||||
import sys
|
|
||||||
from ConfigParser import SafeConfigParser
|
from ConfigParser import SafeConfigParser
|
||||||
|
|
||||||
class Registry(object):
|
class Registry(object):
|
||||||
|
|
|
@ -22,8 +22,6 @@
|
||||||
# Temple Place, Suite 330, Boston, MA 02111-1307 USA #
|
# Temple Place, Suite 330, Boston, MA 02111-1307 USA #
|
||||||
###############################################################################
|
###############################################################################
|
||||||
|
|
||||||
import logging
|
|
||||||
|
|
||||||
class MigrateBibles():
|
class MigrateBibles():
|
||||||
def __init__(self, display):
|
def __init__(self, display):
|
||||||
self.display = display
|
self.display = display
|
||||||
|
|
|
@ -24,17 +24,15 @@
|
||||||
|
|
||||||
import os
|
import os
|
||||||
import sys
|
import sys
|
||||||
import logging
|
|
||||||
import sqlite3
|
import sqlite3
|
||||||
from openlp.core.lib import PluginConfig
|
|
||||||
|
|
||||||
from sqlalchemy import *
|
from sqlalchemy import *
|
||||||
from sqlalchemy.sql import select
|
|
||||||
from sqlalchemy import create_engine
|
from sqlalchemy import create_engine
|
||||||
from sqlalchemy.orm import scoped_session, sessionmaker, mapper, relation, \
|
from sqlalchemy.orm import scoped_session, sessionmaker, mapper, relation
|
||||||
clear_mappers
|
|
||||||
from openlp.plugins.songs.lib.models import metadata, session, \
|
from openlp.core.lib import PluginConfig
|
||||||
engine, songs_table, Song, Author, Topic, Book
|
from openlp.plugins.songs.lib.models import metadata, songs_table, Song, \
|
||||||
|
Author, Topic, Book
|
||||||
from openlp.plugins.songs.lib.tables import *
|
from openlp.plugins.songs.lib.tables import *
|
||||||
from openlp.plugins.songs.lib.classes import *
|
from openlp.plugins.songs.lib.classes import *
|
||||||
|
|
||||||
|
|
|
@ -22,9 +22,9 @@
|
||||||
# Temple Place, Suite 330, Boston, MA 02111-1307 USA #
|
# Temple Place, Suite 330, Boston, MA 02111-1307 USA #
|
||||||
###############################################################################
|
###############################################################################
|
||||||
|
|
||||||
from PyQt4 import QtCore, QtGui
|
from PyQt4 import QtGui
|
||||||
|
|
||||||
from openlp.core.lib import SettingsTab, str_to_bool, translate, Receiver
|
from openlp.core.lib import SettingsTab, translate, Receiver
|
||||||
|
|
||||||
class AuditTab(SettingsTab):
|
class AuditTab(SettingsTab):
|
||||||
"""
|
"""
|
||||||
|
|
|
@ -22,15 +22,10 @@
|
||||||
# Temple Place, Suite 330, Boston, MA 02111-1307 USA #
|
# Temple Place, Suite 330, Boston, MA 02111-1307 USA #
|
||||||
###############################################################################
|
###############################################################################
|
||||||
|
|
||||||
import os, os.path
|
|
||||||
import sys
|
|
||||||
|
|
||||||
from sqlalchemy import asc, desc
|
|
||||||
from openlp.plugins.audit.lib.models import init_models, metadata, session, \
|
|
||||||
engine, AuditItem, audit_table
|
|
||||||
|
|
||||||
import logging
|
import logging
|
||||||
|
|
||||||
|
from openlp.plugins.audit.lib.models import init_models, metadata, AuditItem
|
||||||
|
|
||||||
class AuditManager():
|
class AuditManager():
|
||||||
"""
|
"""
|
||||||
The Song Manager provides a central location for all database code. This
|
The Song Manager provides a central location for all database code. This
|
||||||
|
|
|
@ -24,7 +24,6 @@
|
||||||
|
|
||||||
|
|
||||||
from sqlalchemy import MetaData
|
from sqlalchemy import MetaData
|
||||||
from sqlalchemy.orm import scoped_session, sessionmaker
|
|
||||||
|
|
||||||
__all__ = ['session', 'metadata', 'engine']
|
__all__ = ['session', 'metadata', 'engine']
|
||||||
|
|
||||||
|
|
|
@ -23,9 +23,9 @@
|
||||||
###############################################################################
|
###############################################################################
|
||||||
|
|
||||||
from sqlalchemy import create_engine
|
from sqlalchemy import create_engine
|
||||||
from sqlalchemy.orm import scoped_session, sessionmaker, mapper, relation
|
from sqlalchemy.orm import scoped_session, sessionmaker, mapper
|
||||||
|
|
||||||
from openlp.plugins.audit.lib.meta import session, metadata, engine
|
from openlp.plugins.audit.lib.meta import metadata
|
||||||
from openlp.plugins.audit.lib.tables import *
|
from openlp.plugins.audit.lib.tables import *
|
||||||
from openlp.plugins.audit.lib.classes import *
|
from openlp.plugins.audit.lib.classes import *
|
||||||
|
|
||||||
|
|
|
@ -22,7 +22,7 @@
|
||||||
# Temple Place, Suite 330, Boston, MA 02111-1307 USA #
|
# Temple Place, Suite 330, Boston, MA 02111-1307 USA #
|
||||||
###############################################################################
|
###############################################################################
|
||||||
|
|
||||||
from sqlalchemy import Column, Table, ForeignKey, types
|
from sqlalchemy import Column, Table, types
|
||||||
|
|
||||||
from openlp.plugins.audit.lib.meta import metadata
|
from openlp.plugins.audit.lib.meta import metadata
|
||||||
|
|
||||||
|
|
|
@ -22,11 +22,8 @@
|
||||||
# Temple Place, Suite 330, Boston, MA 02111-1307 USA #
|
# Temple Place, Suite 330, Boston, MA 02111-1307 USA #
|
||||||
###############################################################################
|
###############################################################################
|
||||||
|
|
||||||
import sys
|
|
||||||
import os, os.path
|
|
||||||
import sys
|
|
||||||
import time
|
|
||||||
import logging
|
import logging
|
||||||
|
import os, os.path
|
||||||
|
|
||||||
from PyQt4 import QtCore, QtGui
|
from PyQt4 import QtCore, QtGui
|
||||||
|
|
||||||
|
|
|
@ -25,11 +25,9 @@
|
||||||
import logging
|
import logging
|
||||||
import chardet
|
import chardet
|
||||||
|
|
||||||
from openlp.plugins.bibles.lib.bibleDBimpl import BibleDBImpl
|
|
||||||
from openlp.plugins.bibles.lib.common import BibleCommon
|
from openlp.plugins.bibles.lib.common import BibleCommon
|
||||||
from openlp.core.lib import Receiver
|
from openlp.core.lib import Receiver
|
||||||
|
|
||||||
|
|
||||||
class BibleCSVImpl(BibleCommon):
|
class BibleCSVImpl(BibleCommon):
|
||||||
global log
|
global log
|
||||||
log=logging.getLogger(u'BibleCSVImpl')
|
log=logging.getLogger(u'BibleCSVImpl')
|
||||||
|
|
|
@ -26,7 +26,6 @@ import os
|
||||||
import logging
|
import logging
|
||||||
|
|
||||||
from common import BibleCommon
|
from common import BibleCommon
|
||||||
from openlp.core.utils import ConfigHelper
|
|
||||||
from openlp.plugins.bibles.lib.models import *
|
from openlp.plugins.bibles.lib.models import *
|
||||||
|
|
||||||
class BibleDBImpl(BibleCommon):
|
class BibleDBImpl(BibleCommon):
|
||||||
|
|
|
@ -22,14 +22,10 @@
|
||||||
# Temple Place, Suite 330, Boston, MA 02111-1307 USA #
|
# Temple Place, Suite 330, Boston, MA 02111-1307 USA #
|
||||||
###############################################################################
|
###############################################################################
|
||||||
|
|
||||||
import os, os.path
|
import logging
|
||||||
import sys
|
|
||||||
import urllib2
|
|
||||||
|
|
||||||
from common import BibleCommon, SearchResults
|
from common import BibleCommon, SearchResults
|
||||||
|
|
||||||
import logging
|
|
||||||
|
|
||||||
class BGExtract(BibleCommon):
|
class BGExtract(BibleCommon):
|
||||||
global log
|
global log
|
||||||
log=logging.getLogger(u'BibleHTTPMgr(BG_extract)')
|
log=logging.getLogger(u'BibleHTTPMgr(BG_extract)')
|
||||||
|
|
|
@ -30,7 +30,6 @@ import codecs
|
||||||
|
|
||||||
from PyQt4 import QtCore
|
from PyQt4 import QtCore
|
||||||
|
|
||||||
from openlp.plugins.bibles.lib.bibleDBimpl import BibleDBImpl
|
|
||||||
from openlp.core.lib import Receiver
|
from openlp.core.lib import Receiver
|
||||||
|
|
||||||
class BibleOSISImpl():
|
class BibleOSISImpl():
|
||||||
|
|
|
@ -24,7 +24,7 @@
|
||||||
|
|
||||||
import logging
|
import logging
|
||||||
|
|
||||||
from PyQt4 import Qt, QtCore, QtGui
|
from PyQt4 import QtCore, QtGui
|
||||||
|
|
||||||
from openlp.core.lib import translate, str_to_bool, Receiver
|
from openlp.core.lib import translate, str_to_bool, Receiver
|
||||||
from openlp.core.lib import SettingsTab
|
from openlp.core.lib import SettingsTab
|
||||||
|
|
|
@ -22,9 +22,6 @@
|
||||||
# Temple Place, Suite 330, Boston, MA 02111-1307 USA #
|
# Temple Place, Suite 330, Boston, MA 02111-1307 USA #
|
||||||
###############################################################################
|
###############################################################################
|
||||||
|
|
||||||
import os
|
|
||||||
import os.path
|
|
||||||
import sys
|
|
||||||
import urllib2
|
import urllib2
|
||||||
import chardet
|
import chardet
|
||||||
import logging
|
import logging
|
||||||
|
|
|
@ -24,14 +24,11 @@
|
||||||
|
|
||||||
import logging
|
import logging
|
||||||
import os
|
import os
|
||||||
import sys
|
|
||||||
|
|
||||||
from common import SearchResults
|
|
||||||
from bibleOSISimpl import BibleOSISImpl
|
from bibleOSISimpl import BibleOSISImpl
|
||||||
from bibleCSVimpl import BibleCSVImpl
|
from bibleCSVimpl import BibleCSVImpl
|
||||||
from bibleDBimpl import BibleDBImpl
|
from bibleDBimpl import BibleDBImpl
|
||||||
from bibleHTTPimpl import BibleHTTPImpl
|
from bibleHTTPimpl import BibleHTTPImpl
|
||||||
from openlp.core.lib import Receiver
|
|
||||||
|
|
||||||
class BibleMode(object):
|
class BibleMode(object):
|
||||||
Full = 1
|
Full = 1
|
||||||
|
|
|
@ -27,8 +27,8 @@ import time
|
||||||
|
|
||||||
from PyQt4 import QtCore, QtGui
|
from PyQt4 import QtCore, QtGui
|
||||||
|
|
||||||
from openlp.core.lib import translate, ServiceItem, MediaManagerItem, \
|
from openlp.core.lib import translate, MediaManagerItem, Receiver, \
|
||||||
Receiver, contextMenuAction, contextMenuSeparator, BaseListWithDnD
|
contextMenuAction, BaseListWithDnD
|
||||||
from openlp.plugins.bibles.forms import BibleImportForm
|
from openlp.plugins.bibles.forms import BibleImportForm
|
||||||
from openlp.plugins.bibles.lib.manager import BibleMode
|
from openlp.plugins.bibles.lib.manager import BibleMode
|
||||||
|
|
||||||
|
|
|
@ -19,7 +19,6 @@ You should have received a copy of the GNU General Public License along with
|
||||||
this program; if not, write to the Free Software Foundation, Inc., 59 Temple
|
this program; if not, write to the Free Software Foundation, Inc., 59 Temple
|
||||||
Place, Suite 330, Boston, MA 02111-1307 USA
|
Place, Suite 330, Boston, MA 02111-1307 USA
|
||||||
"""
|
"""
|
||||||
import string
|
|
||||||
|
|
||||||
from sqlalchemy import Column, Table, MetaData, ForeignKey, types, \
|
from sqlalchemy import Column, Table, MetaData, ForeignKey, types, \
|
||||||
create_engine
|
create_engine
|
||||||
|
|
|
@ -16,36 +16,33 @@ this program; if not, write to the Free Software Foundation, Inc., 59 Temple
|
||||||
Place, Suite 330, Boston, MA 02111-1307 USA
|
Place, Suite 330, Boston, MA 02111-1307 USA
|
||||||
"""
|
"""
|
||||||
|
|
||||||
import random
|
import logging
|
||||||
import unittest
|
|
||||||
|
|
||||||
import os, os.path
|
import os, os.path
|
||||||
import sys
|
import sys
|
||||||
mypath=os.path.split(os.path.abspath(__file__))[0]
|
|
||||||
sys.path.insert(0,(os.path.join(mypath, '..', '..','..','..')))
|
|
||||||
|
|
||||||
from openlp.plugins.bibles.lib.biblemanager import BibleManager
|
from openlp.plugins.bibles.lib.biblemanager import BibleManager
|
||||||
from openlp.utils import ConfigHelper
|
|
||||||
|
|
||||||
import logging
|
mypath = os.path.split(os.path.abspath(__file__))[0]
|
||||||
|
sys.path.insert(0,(os.path.join(mypath, '..', '..','..','..')))
|
||||||
|
|
||||||
logging.basicConfig(level=logging.DEBUG,
|
logging.basicConfig(level=logging.DEBUG,
|
||||||
format='%(asctime)s %(name)-12s %(levelname)-8s %(message)s',
|
format='%(asctime)s %(name)-12s %(levelname)-8s %(message)s',
|
||||||
datefmt='%m-%d %H:%M',
|
datefmt='%m-%d %H:%M',
|
||||||
filename='plugins.log',
|
filename='plugins.log',
|
||||||
filemode='w')
|
filemode='w')
|
||||||
|
|
||||||
console=logging.StreamHandler()
|
console = logging.StreamHandler()
|
||||||
# set a format which is simpler for console use
|
# set a format which is simpler for console use
|
||||||
formatter = logging.Formatter(u'%(name)-12s: %(levelname)-8s %(message)s')
|
formatter = logging.Formatter(u'%(name)-12s: %(levelname)-8s %(message)s')
|
||||||
# tell the handler to use this format
|
# tell the handler to use this format
|
||||||
console.setFormatter(formatter)
|
console.setFormatter(formatter)
|
||||||
logging.getLogger(u'').addHandler(console)
|
logging.getLogger(u'').addHandler(console)
|
||||||
log=logging.getLogger(u'')
|
log = logging.getLogger(u'')
|
||||||
|
|
||||||
logging.info(u'\nLogging started')
|
logging.info(u'\nLogging started')
|
||||||
|
|
||||||
class TestBibleManager:
|
class TestBibleManager:
|
||||||
log=logging.getLogger(u'testBibleMgr')
|
log = logging.getLogger(u'testBibleMgr')
|
||||||
def setup_class(self):
|
def setup_class(self):
|
||||||
log.debug(u'\n.......Register BM')
|
log.debug(u'\n.......Register BM')
|
||||||
self.bm = BibleManager()
|
self.bm = BibleManager()
|
||||||
|
|
|
@ -16,36 +16,33 @@ this program; if not, write to the Free Software Foundation, Inc., 59 Temple
|
||||||
Place, Suite 330, Boston, MA 02111-1307 USA
|
Place, Suite 330, Boston, MA 02111-1307 USA
|
||||||
"""
|
"""
|
||||||
|
|
||||||
import random
|
import logging
|
||||||
import unittest
|
|
||||||
|
|
||||||
import os, os.path
|
import os, os.path
|
||||||
import sys
|
import sys
|
||||||
mypath=os.path.split(os.path.abspath(__file__))[0]
|
|
||||||
sys.path.insert(0,(os.path.join(mypath, '..', '..','..','..')))
|
|
||||||
|
|
||||||
from openlp.plugins.biblemanager.bibleManager import BibleManager
|
from openlp.plugins.biblemanager.bibleManager import BibleManager
|
||||||
from openlp.core.utils import ConfigHelper
|
|
||||||
|
|
||||||
import logging
|
mypath = os.path.split(os.path.abspath(__file__))[0]
|
||||||
|
sys.path.insert(0,(os.path.join(mypath, '..', '..','..','..')))
|
||||||
|
|
||||||
logging.basicConfig(level=logging.DEBUG,
|
logging.basicConfig(level=logging.DEBUG,
|
||||||
format='%(asctime)s %(name)-12s %(levelname)-8s %(message)s',
|
format='%(asctime)s %(name)-12s %(levelname)-8s %(message)s',
|
||||||
datefmt='%m-%d %H:%M',
|
datefmt='%m-%d %H:%M',
|
||||||
filename='plugins.log',
|
filename='plugins.log',
|
||||||
filemode='w')
|
filemode='w')
|
||||||
|
|
||||||
console=logging.StreamHandler()
|
console = logging.StreamHandler()
|
||||||
# set a format which is simpler for console use
|
# set a format which is simpler for console use
|
||||||
formatter = logging.Formatter(u'%(name)-12s: %(levelname)-8s %(message)s')
|
formatter = logging.Formatter(u'%(name)-12s: %(levelname)-8s %(message)s')
|
||||||
# tell the handler to use this format
|
# tell the handler to use this format
|
||||||
console.setFormatter(formatter)
|
console.setFormatter(formatter)
|
||||||
logging.getLogger(u'').addHandler(console)
|
logging.getLogger(u'').addHandler(console)
|
||||||
log=logging.getLogger(u'')
|
log = logging.getLogger(u'')
|
||||||
|
|
||||||
logging.info(u'\nLogging started')
|
logging.info(u'\nLogging started')
|
||||||
|
|
||||||
class TestBibleManager:
|
class TestBibleManager:
|
||||||
log=logging.getLogger(u'testBibleMgr')
|
log = logging.getLogger(u'testBibleMgr')
|
||||||
def setup_class(self):
|
def setup_class(self):
|
||||||
log.debug(u'\n.......Register BM')
|
log.debug(u'\n.......Register BM')
|
||||||
self.bm = BibleManager()
|
self.bm = BibleManager()
|
||||||
|
|
|
@ -16,36 +16,33 @@ this program; if not, write to the Free Software Foundation, Inc., 59 Temple
|
||||||
Place, Suite 330, Boston, MA 02111-1307 USA
|
Place, Suite 330, Boston, MA 02111-1307 USA
|
||||||
"""
|
"""
|
||||||
|
|
||||||
import random
|
import logging
|
||||||
import unittest
|
|
||||||
|
|
||||||
import os, os.path
|
import os, os.path
|
||||||
import sys
|
import sys
|
||||||
mypath=os.path.split(os.path.abspath(__file__))[0]
|
|
||||||
sys.path.insert(0,(os.path.join(mypath, '..', '..','..','..')))
|
|
||||||
|
|
||||||
from openlp.plugins.bibles.lib.biblemanager import BibleManager
|
from openlp.plugins.bibles.lib.biblemanager import BibleManager
|
||||||
from openlp.utils import ConfigHelper
|
|
||||||
|
|
||||||
import logging
|
mypath = os.path.split(os.path.abspath(__file__))[0]
|
||||||
|
sys.path.insert(0,(os.path.join(mypath, '..', '..','..','..')))
|
||||||
|
|
||||||
logging.basicConfig(level=logging.DEBUG,
|
logging.basicConfig(level=logging.DEBUG,
|
||||||
format='%(asctime)s %(name)-12s %(levelname)-8s %(message)s',
|
format='%(asctime)s %(name)-12s %(levelname)-8s %(message)s',
|
||||||
datefmt='%m-%d %H:%M',
|
datefmt='%m-%d %H:%M',
|
||||||
filename='plugins.log',
|
filename='plugins.log',
|
||||||
filemode='w')
|
filemode='w')
|
||||||
|
|
||||||
console=logging.StreamHandler()
|
console = logging.StreamHandler()
|
||||||
# set a format which is simpler for console use
|
# set a format which is simpler for console use
|
||||||
formatter = logging.Formatter(u'%(name)-12s: %(levelname)-8s %(message)s')
|
formatter = logging.Formatter(u'%(name)-12s: %(levelname)-8s %(message)s')
|
||||||
# tell the handler to use this format
|
# tell the handler to use this format
|
||||||
console.setFormatter(formatter)
|
console.setFormatter(formatter)
|
||||||
logging.getLogger(u'').addHandler(console)
|
logging.getLogger(u'').addHandler(console)
|
||||||
log=logging.getLogger(u'')
|
log = logging.getLogger(u'')
|
||||||
|
|
||||||
logging.info(u'\nLogging started')
|
logging.info(u'\nLogging started')
|
||||||
|
|
||||||
class TestBibleManager:
|
class TestBibleManager:
|
||||||
log=logging.getLogger(u'testBibleMgr')
|
log = logging.getLogger(u'testBibleMgr')
|
||||||
def setup_class(self):
|
def setup_class(self):
|
||||||
log.debug(u'\n.......Register BM')
|
log.debug(u'\n.......Register BM')
|
||||||
self.bm = BibleManager()
|
self.bm = BibleManager()
|
||||||
|
|
|
@ -16,36 +16,33 @@ this program; if not, write to the Free Software Foundation, Inc., 59 Temple
|
||||||
Place, Suite 330, Boston, MA 02111-1307 USA
|
Place, Suite 330, Boston, MA 02111-1307 USA
|
||||||
"""
|
"""
|
||||||
|
|
||||||
import random
|
import logging
|
||||||
import unittest
|
|
||||||
|
|
||||||
import os, os.path
|
import os, os.path
|
||||||
import sys
|
import sys
|
||||||
mypath=os.path.split(os.path.abspath(__file__))[0]
|
|
||||||
sys.path.insert(0,(os.path.join(mypath, '..', '..','..','..')))
|
|
||||||
|
|
||||||
from openlp.plugins.bibles.lib.biblemanager import BibleManager
|
from openlp.plugins.bibles.lib.biblemanager import BibleManager
|
||||||
from openlp.utils import ConfigHelper
|
|
||||||
|
|
||||||
import logging
|
mypath = os.path.split(os.path.abspath(__file__))[0]
|
||||||
|
sys.path.insert(0,(os.path.join(mypath, '..', '..','..','..')))
|
||||||
|
|
||||||
logging.basicConfig(level=logging.DEBUG,
|
logging.basicConfig(level=logging.DEBUG,
|
||||||
format='%(asctime)s %(name)-12s %(levelname)-8s %(message)s',
|
format='%(asctime)s %(name)-12s %(levelname)-8s %(message)s',
|
||||||
datefmt='%m-%d %H:%M',
|
datefmt='%m-%d %H:%M',
|
||||||
filename='plugins.log',
|
filename='plugins.log',
|
||||||
filemode='w')
|
filemode='w')
|
||||||
|
|
||||||
console=logging.StreamHandler()
|
console = logging.StreamHandler()
|
||||||
# set a format which is simpler for console use
|
# set a format which is simpler for console use
|
||||||
formatter = logging.Formatter(u'%(name)-12s: %(levelname)-8s %(message)s')
|
formatter = logging.Formatter(u'%(name)-12s: %(levelname)-8s %(message)s')
|
||||||
# tell the handler to use this format
|
# tell the handler to use this format
|
||||||
console.setFormatter(formatter)
|
console.setFormatter(formatter)
|
||||||
logging.getLogger(u'').addHandler(console)
|
logging.getLogger(u'').addHandler(console)
|
||||||
log=logging.getLogger(u'')
|
log = logging.getLogger(u'')
|
||||||
|
|
||||||
logging.info(u'\nLogging started')
|
logging.info(u'\nLogging started')
|
||||||
|
|
||||||
class TestBibleManager:
|
class TestBibleManager:
|
||||||
log=logging.getLogger(u'testBibleMgr')
|
log = logging.getLogger(u'testBibleMgr')
|
||||||
def setup_class(self):
|
def setup_class(self):
|
||||||
log.debug(u'\n.......Register BM')
|
log.debug(u'\n.......Register BM')
|
||||||
self.bm = BibleManager()
|
self.bm = BibleManager()
|
||||||
|
|
|
@ -24,7 +24,7 @@
|
||||||
|
|
||||||
import logging
|
import logging
|
||||||
|
|
||||||
from PyQt4 import QtCore, QtGui
|
from PyQt4 import QtGui
|
||||||
|
|
||||||
from forms import EditCustomForm
|
from forms import EditCustomForm
|
||||||
from openlp.core.lib import Plugin
|
from openlp.core.lib import Plugin
|
||||||
|
|
|
@ -22,7 +22,7 @@
|
||||||
# Temple Place, Suite 330, Boston, MA 02111-1307 USA #
|
# Temple Place, Suite 330, Boston, MA 02111-1307 USA #
|
||||||
###############################################################################
|
###############################################################################
|
||||||
|
|
||||||
from PyQt4 import Qt, QtCore, QtGui
|
from PyQt4 import QtCore, QtGui
|
||||||
|
|
||||||
from editcustomdialog import Ui_customEditDialog
|
from editcustomdialog import Ui_customEditDialog
|
||||||
from openlp.core.lib import SongXMLBuilder, SongXMLParser, Receiver, translate
|
from openlp.core.lib import SongXMLBuilder, SongXMLParser, Receiver, translate
|
||||||
|
|
|
@ -22,15 +22,10 @@
|
||||||
# Temple Place, Suite 330, Boston, MA 02111-1307 USA #
|
# Temple Place, Suite 330, Boston, MA 02111-1307 USA #
|
||||||
###############################################################################
|
###############################################################################
|
||||||
|
|
||||||
import os, os.path
|
|
||||||
import sys
|
|
||||||
|
|
||||||
from sqlalchemy import asc, desc
|
|
||||||
from openlp.plugins.custom.lib.models import init_models, metadata, session, \
|
|
||||||
engine, CustomSlide, custom_slide_table
|
|
||||||
|
|
||||||
import logging
|
import logging
|
||||||
|
|
||||||
|
from openlp.plugins.custom.lib.models import init_models, metadata, CustomSlide
|
||||||
|
|
||||||
class CustomManager():
|
class CustomManager():
|
||||||
"""
|
"""
|
||||||
The Song Manager provides a central location for all database code. This
|
The Song Manager provides a central location for all database code. This
|
||||||
|
@ -38,7 +33,7 @@ class CustomManager():
|
||||||
"""
|
"""
|
||||||
|
|
||||||
global log
|
global log
|
||||||
log=logging.getLogger(u'CustomManager')
|
log = logging.getLogger(u'CustomManager')
|
||||||
log.info(u'Custom manager loaded')
|
log.info(u'Custom manager loaded')
|
||||||
|
|
||||||
def __init__(self, config):
|
def __init__(self, config):
|
||||||
|
|
|
@ -26,8 +26,7 @@ import logging
|
||||||
|
|
||||||
from PyQt4 import QtCore, QtGui
|
from PyQt4 import QtCore, QtGui
|
||||||
|
|
||||||
from openlp.core.lib import MediaManagerItem, SongXMLParser, ServiceItem, \
|
from openlp.core.lib import MediaManagerItem, SongXMLParser, BaseListWithDnD
|
||||||
translate, contextMenuAction, contextMenuSeparator, BaseListWithDnD
|
|
||||||
|
|
||||||
class CustomListView(BaseListWithDnD):
|
class CustomListView(BaseListWithDnD):
|
||||||
def __init__(self, parent=None):
|
def __init__(self, parent=None):
|
||||||
|
|
|
@ -23,7 +23,6 @@
|
||||||
###############################################################################
|
###############################################################################
|
||||||
|
|
||||||
from sqlalchemy import MetaData
|
from sqlalchemy import MetaData
|
||||||
from sqlalchemy.orm import scoped_session, sessionmaker
|
|
||||||
|
|
||||||
__all__ = ['session', 'metadata', 'engine']
|
__all__ = ['session', 'metadata', 'engine']
|
||||||
|
|
||||||
|
|
|
@ -23,9 +23,9 @@
|
||||||
###############################################################################
|
###############################################################################
|
||||||
|
|
||||||
from sqlalchemy import create_engine
|
from sqlalchemy import create_engine
|
||||||
from sqlalchemy.orm import scoped_session, sessionmaker, mapper, relation
|
from sqlalchemy.orm import scoped_session, sessionmaker, mapper
|
||||||
|
|
||||||
from openlp.plugins.custom.lib.meta import session, metadata, engine
|
from openlp.plugins.custom.lib.meta import metadata
|
||||||
from openlp.plugins.custom.lib.tables import *
|
from openlp.plugins.custom.lib.tables import *
|
||||||
from openlp.plugins.custom.lib.classes import *
|
from openlp.plugins.custom.lib.classes import *
|
||||||
|
|
||||||
|
|
|
@ -22,7 +22,7 @@
|
||||||
# Temple Place, Suite 330, Boston, MA 02111-1307 USA #
|
# Temple Place, Suite 330, Boston, MA 02111-1307 USA #
|
||||||
###############################################################################
|
###############################################################################
|
||||||
|
|
||||||
from sqlalchemy import Column, Table, ForeignKey, types
|
from sqlalchemy import Column, Table, types
|
||||||
|
|
||||||
from openlp.plugins.custom.lib.meta import metadata
|
from openlp.plugins.custom.lib.meta import metadata
|
||||||
|
|
||||||
|
|
|
@ -24,7 +24,7 @@
|
||||||
|
|
||||||
import logging
|
import logging
|
||||||
|
|
||||||
from PyQt4 import QtCore, QtGui
|
from PyQt4 import QtGui
|
||||||
|
|
||||||
from openlp.core.lib import Plugin
|
from openlp.core.lib import Plugin
|
||||||
from openlp.plugins.images.lib import ImageMediaItem, ImageTab
|
from openlp.plugins.images.lib import ImageMediaItem, ImageTab
|
||||||
|
|
|
@ -24,7 +24,7 @@
|
||||||
|
|
||||||
from PyQt4 import QtCore, QtGui
|
from PyQt4 import QtCore, QtGui
|
||||||
|
|
||||||
from openlp.core.lib import SettingsTab, str_to_bool, translate, Receiver
|
from openlp.core.lib import SettingsTab, translate, Receiver
|
||||||
|
|
||||||
class ImageTab(SettingsTab):
|
class ImageTab(SettingsTab):
|
||||||
"""
|
"""
|
||||||
|
|
|
@ -26,8 +26,7 @@ import logging
|
||||||
import os
|
import os
|
||||||
|
|
||||||
from PyQt4 import QtCore, QtGui
|
from PyQt4 import QtCore, QtGui
|
||||||
from openlp.core.lib import MediaManagerItem, ServiceItem, translate, \
|
from openlp.core.lib import MediaManagerItem, BaseListWithDnD, buildIcon
|
||||||
BaseListWithDnD, buildIcon
|
|
||||||
|
|
||||||
# We have to explicitly create separate classes for each plugin
|
# We have to explicitly create separate classes for each plugin
|
||||||
# in order for DnD to the Service manager to work correctly.
|
# in order for DnD to the Service manager to work correctly.
|
||||||
|
|
|
@ -24,14 +24,10 @@
|
||||||
|
|
||||||
import logging
|
import logging
|
||||||
import os
|
import os
|
||||||
import tempfile
|
|
||||||
|
|
||||||
from PyQt4 import QtCore, QtGui
|
from PyQt4 import QtCore, QtGui
|
||||||
|
|
||||||
from openlp.core.lib import MediaManagerItem, ServiceItem, translate, \
|
from openlp.core.lib import MediaManagerItem, BaseListWithDnD, buildIcon
|
||||||
BaseListWithDnD, buildIcon
|
|
||||||
|
|
||||||
from openlp.plugins.media.lib import MediaTab, FileListData
|
|
||||||
|
|
||||||
class MediaListView(BaseListWithDnD):
|
class MediaListView(BaseListWithDnD):
|
||||||
def __init__(self, parent=None):
|
def __init__(self, parent=None):
|
||||||
|
|
|
@ -22,11 +22,10 @@
|
||||||
# Temple Place, Suite 330, Boston, MA 02111-1307 USA #
|
# Temple Place, Suite 330, Boston, MA 02111-1307 USA #
|
||||||
###############################################################################
|
###############################################################################
|
||||||
|
|
||||||
import os
|
from PyQt4 import QtGui
|
||||||
from PyQt4 import QtCore, QtGui
|
|
||||||
|
|
||||||
from openlp.core.lib import Plugin, MediaManagerItem, SettingsTab
|
from openlp.core.lib import Plugin
|
||||||
from openlp.plugins.media.lib import MediaTab,MediaMediaItem
|
from openlp.plugins.media.lib import MediaTab, MediaMediaItem
|
||||||
|
|
||||||
class MediaPlugin(Plugin):
|
class MediaPlugin(Plugin):
|
||||||
|
|
||||||
|
|
|
@ -27,16 +27,13 @@ Place, Suite 330, Boston, MA 02111-1307 USA
|
||||||
# http://nxsy.org/comparing-documents-with-openoffice-and-python
|
# http://nxsy.org/comparing-documents-with-openoffice-and-python
|
||||||
|
|
||||||
import logging
|
import logging
|
||||||
import os, subprocess
|
import os
|
||||||
import time
|
|
||||||
import sys
|
|
||||||
|
|
||||||
if os.name == u'nt':
|
if os.name == u'nt':
|
||||||
from win32com.client import Dispatch
|
from win32com.client import Dispatch
|
||||||
else:
|
else:
|
||||||
import uno
|
import uno
|
||||||
|
|
||||||
|
|
||||||
from PyQt4 import QtCore
|
from PyQt4 import QtCore
|
||||||
|
|
||||||
class ImpressController(object):
|
class ImpressController(object):
|
||||||
|
|
|
@ -26,8 +26,8 @@ import logging
|
||||||
import os
|
import os
|
||||||
|
|
||||||
from PyQt4 import QtCore, QtGui
|
from PyQt4 import QtCore, QtGui
|
||||||
from openlp.core.lib import MediaManagerItem, ServiceItem, translate, \
|
|
||||||
BaseListWithDnD
|
from openlp.core.lib import MediaManagerItem, translate, BaseListWithDnD
|
||||||
from openlp.plugins.presentations.lib import MessageListener
|
from openlp.plugins.presentations.lib import MessageListener
|
||||||
|
|
||||||
# We have to explicitly create separate classes for each plugin
|
# We have to explicitly create separate classes for each plugin
|
||||||
|
|
|
@ -21,8 +21,8 @@ import logging
|
||||||
import os
|
import os
|
||||||
|
|
||||||
from PyQt4 import QtCore
|
from PyQt4 import QtCore
|
||||||
|
|
||||||
from openlp.core.lib import Receiver
|
from openlp.core.lib import Receiver
|
||||||
from openlp.plugins.presentations.lib import ImpressController
|
|
||||||
|
|
||||||
class MessageListener(object):
|
class MessageListener(object):
|
||||||
"""
|
"""
|
||||||
|
|
|
@ -23,16 +23,10 @@
|
||||||
###############################################################################
|
###############################################################################
|
||||||
|
|
||||||
import logging
|
import logging
|
||||||
import os, subprocess
|
|
||||||
import time
|
|
||||||
import sys
|
|
||||||
import win32api
|
|
||||||
|
|
||||||
from ctypes import *
|
from ctypes import *
|
||||||
from ctypes.wintypes import RECT
|
from ctypes.wintypes import RECT
|
||||||
|
|
||||||
from PyQt4 import QtCore
|
|
||||||
|
|
||||||
class PptviewController(object):
|
class PptviewController(object):
|
||||||
"""
|
"""
|
||||||
Class to control interactions with PowerPOint Viewer Presentations
|
Class to control interactions with PowerPOint Viewer Presentations
|
||||||
|
|
|
@ -22,9 +22,9 @@
|
||||||
# Temple Place, Suite 330, Boston, MA 02111-1307 USA #
|
# Temple Place, Suite 330, Boston, MA 02111-1307 USA #
|
||||||
###############################################################################
|
###############################################################################
|
||||||
|
|
||||||
from PyQt4 import Qt, QtCore, QtGui
|
from PyQt4 import QtGui
|
||||||
|
|
||||||
from openlp.core.lib import SettingsTab, translate, str_to_bool
|
from openlp.core.lib import SettingsTab, translate
|
||||||
|
|
||||||
class PresentationTab(SettingsTab):
|
class PresentationTab(SettingsTab):
|
||||||
"""
|
"""
|
||||||
|
|
|
@ -23,12 +23,11 @@
|
||||||
###############################################################################
|
###############################################################################
|
||||||
|
|
||||||
import os
|
import os
|
||||||
import sys
|
|
||||||
import logging
|
import logging
|
||||||
|
|
||||||
from PyQt4 import QtCore, QtGui
|
from PyQt4 import QtCore, QtGui
|
||||||
|
|
||||||
from openlp.core.lib import Plugin, MediaManagerItem
|
from openlp.core.lib import Plugin
|
||||||
from openlp.plugins.presentations.lib import PresentationMediaItem, \
|
from openlp.plugins.presentations.lib import PresentationMediaItem, \
|
||||||
PresentationTab, ImpressController
|
PresentationTab, ImpressController
|
||||||
if os.name == u'nt':
|
if os.name == u'nt':
|
||||||
|
@ -38,7 +37,6 @@ if os.name == u'nt':
|
||||||
pass
|
pass
|
||||||
from openlp.plugins.presentations.lib import PptviewController
|
from openlp.plugins.presentations.lib import PptviewController
|
||||||
|
|
||||||
|
|
||||||
class PresentationPlugin(Plugin):
|
class PresentationPlugin(Plugin):
|
||||||
|
|
||||||
global log
|
global log
|
||||||
|
|
|
@ -18,9 +18,9 @@ this program; if not, write to the Free Software Foundation, Inc., 59 Temple
|
||||||
Place, Suite 330, Boston, MA 02111-1307 USA
|
Place, Suite 330, Boston, MA 02111-1307 USA
|
||||||
"""
|
"""
|
||||||
|
|
||||||
from PyQt4 import QtCore, QtGui
|
from PyQt4 import QtGui
|
||||||
|
|
||||||
from openlp.core.lib import SettingsTab, str_to_bool, translate
|
from openlp.core.lib import SettingsTab, translate
|
||||||
|
|
||||||
class RemoteTab(SettingsTab):
|
class RemoteTab(SettingsTab):
|
||||||
"""
|
"""
|
||||||
|
|
|
@ -18,9 +18,8 @@ this program; if not, write to the Free Software Foundation, Inc., 59 Temple
|
||||||
Place, Suite 330, Boston, MA 02111-1307 USA
|
Place, Suite 330, Boston, MA 02111-1307 USA
|
||||||
"""
|
"""
|
||||||
import logging
|
import logging
|
||||||
import sys
|
|
||||||
|
|
||||||
from PyQt4 import QtNetwork, QtGui, QtCore
|
from PyQt4 import QtNetwork, QtCore
|
||||||
|
|
||||||
from openlp.core.lib import Plugin, Receiver
|
from openlp.core.lib import Plugin, Receiver
|
||||||
from openlp.plugins.remotes.lib import RemoteTab
|
from openlp.plugins.remotes.lib import RemoteTab
|
||||||
|
|
|
@ -24,10 +24,9 @@
|
||||||
|
|
||||||
import logging
|
import logging
|
||||||
|
|
||||||
from PyQt4 import Qt, QtCore, QtGui
|
from PyQt4 import QtCore, QtGui
|
||||||
|
|
||||||
from openlp.core.lib import SongXMLBuilder, SongXMLParser, Receiver, \
|
from openlp.core.lib import SongXMLBuilder, SongXMLParser, Receiver, translate
|
||||||
translate
|
|
||||||
from openlp.plugins.songs.forms import EditVerseForm
|
from openlp.plugins.songs.forms import EditVerseForm
|
||||||
from openlp.plugins.songs.lib.models import Song
|
from openlp.plugins.songs.lib.models import Song
|
||||||
from editsongdialog import Ui_EditSongDialog
|
from editsongdialog import Ui_EditSongDialog
|
||||||
|
|
|
@ -22,7 +22,7 @@
|
||||||
# Temple Place, Suite 330, Boston, MA 02111-1307 USA #
|
# Temple Place, Suite 330, Boston, MA 02111-1307 USA #
|
||||||
###############################################################################
|
###############################################################################
|
||||||
|
|
||||||
from PyQt4 import Qt, QtCore, QtGui
|
from PyQt4 import QtCore, QtGui
|
||||||
|
|
||||||
from editversedialog import Ui_EditVerseDialog
|
from editversedialog import Ui_EditVerseDialog
|
||||||
|
|
||||||
|
|
|
@ -22,7 +22,8 @@
|
||||||
# Temple Place, Suite 330, Boston, MA 02111-1307 USA #
|
# Temple Place, Suite 330, Boston, MA 02111-1307 USA #
|
||||||
###############################################################################
|
###############################################################################
|
||||||
|
|
||||||
from PyQt4 import QtGui, QtCore
|
from PyQt4 import QtGui
|
||||||
|
|
||||||
from openlp.core.lib import translate
|
from openlp.core.lib import translate
|
||||||
from openlp.plugins.songs.forms.songbookdialog import Ui_SongBookDialog
|
from openlp.plugins.songs.forms.songbookdialog import Ui_SongBookDialog
|
||||||
|
|
||||||
|
|
|
@ -22,7 +22,8 @@
|
||||||
# Temple Place, Suite 330, Boston, MA 02111-1307 USA #
|
# Temple Place, Suite 330, Boston, MA 02111-1307 USA #
|
||||||
###############################################################################
|
###############################################################################
|
||||||
|
|
||||||
from PyQt4 import QtGui, QtCore
|
from PyQt4 import QtGui
|
||||||
|
|
||||||
from openlp.core.lib import translate
|
from openlp.core.lib import translate
|
||||||
from openlp.plugins.songs.forms.topicsdialog import Ui_TopicsDialog
|
from openlp.plugins.songs.forms.topicsdialog import Ui_TopicsDialog
|
||||||
|
|
||||||
|
|
|
@ -22,15 +22,11 @@
|
||||||
# Temple Place, Suite 330, Boston, MA 02111-1307 USA #
|
# Temple Place, Suite 330, Boston, MA 02111-1307 USA #
|
||||||
###############################################################################
|
###############################################################################
|
||||||
|
|
||||||
import os, os.path
|
|
||||||
import sys
|
|
||||||
|
|
||||||
from sqlalchemy import asc, desc
|
|
||||||
from openlp.plugins.songs.lib.models import init_models, metadata, session, \
|
|
||||||
engine, songs_table, Song, Author, Topic, Book
|
|
||||||
|
|
||||||
import logging
|
import logging
|
||||||
|
|
||||||
|
from openlp.plugins.songs.lib.models import init_models, metadata, Song, \
|
||||||
|
Author, Topic, Book
|
||||||
|
|
||||||
class SongManager():
|
class SongManager():
|
||||||
"""
|
"""
|
||||||
The Song Manager provides a central location for all database code. This
|
The Song Manager provides a central location for all database code. This
|
||||||
|
|
|
@ -26,9 +26,8 @@ import logging
|
||||||
|
|
||||||
from PyQt4 import QtCore, QtGui
|
from PyQt4 import QtCore, QtGui
|
||||||
|
|
||||||
from openlp.core.lib import MediaManagerItem, translate, ServiceItem, \
|
from openlp.core.lib import MediaManagerItem, translate, SongXMLParser, \
|
||||||
SongXMLParser, contextMenuAction, contextMenuSeparator, BaseListWithDnD, \
|
contextMenuAction, contextMenuSeparator, BaseListWithDnD, Receiver
|
||||||
Receiver
|
|
||||||
from openlp.plugins.songs.forms import EditSongForm, SongMaintenanceForm
|
from openlp.plugins.songs.forms import EditSongForm, SongMaintenanceForm
|
||||||
|
|
||||||
class SongListView(BaseListWithDnD):
|
class SongListView(BaseListWithDnD):
|
||||||
|
|
|
@ -23,7 +23,6 @@
|
||||||
###############################################################################
|
###############################################################################
|
||||||
|
|
||||||
from sqlalchemy import MetaData
|
from sqlalchemy import MetaData
|
||||||
from sqlalchemy.orm import scoped_session, sessionmaker
|
|
||||||
|
|
||||||
__all__ = ['session', 'metadata', 'engine']
|
__all__ = ['session', 'metadata', 'engine']
|
||||||
|
|
||||||
|
|
|
@ -25,7 +25,7 @@
|
||||||
from sqlalchemy import create_engine
|
from sqlalchemy import create_engine
|
||||||
from sqlalchemy.orm import scoped_session, sessionmaker, mapper, relation
|
from sqlalchemy.orm import scoped_session, sessionmaker, mapper, relation
|
||||||
|
|
||||||
from openlp.plugins.songs.lib.meta import session, metadata, engine
|
from openlp.plugins.songs.lib.meta import metadata
|
||||||
from openlp.plugins.songs.lib.tables import *
|
from openlp.plugins.songs.lib.tables import *
|
||||||
from openlp.plugins.songs.lib.classes import *
|
from openlp.plugins.songs.lib.classes import *
|
||||||
|
|
||||||
|
|
|
@ -22,8 +22,6 @@
|
||||||
# Temple Place, Suite 330, Boston, MA 02111-1307 USA #
|
# Temple Place, Suite 330, Boston, MA 02111-1307 USA #
|
||||||
###############################################################################
|
###############################################################################
|
||||||
|
|
||||||
from PyQt4 import QtCore, QtGui
|
|
||||||
|
|
||||||
from openlp.core.lib import SettingsTab, translate
|
from openlp.core.lib import SettingsTab, translate
|
||||||
|
|
||||||
class SongsTab(SettingsTab):
|
class SongsTab(SettingsTab):
|
||||||
|
|
|
@ -27,7 +27,7 @@ import logging
|
||||||
from PyQt4 import QtCore, QtGui
|
from PyQt4 import QtCore, QtGui
|
||||||
|
|
||||||
from openlp.core.lib import Plugin, translate
|
from openlp.core.lib import Plugin, translate
|
||||||
from openlp.plugins.songs.lib import SongManager, SongsTab, SongMediaItem
|
from openlp.plugins.songs.lib import SongManager, SongMediaItem
|
||||||
from openlp.plugins.songs.forms import OpenLPImportForm, OpenSongExportForm, \
|
from openlp.plugins.songs.forms import OpenLPImportForm, OpenSongExportForm, \
|
||||||
OpenSongImportForm, OpenLPExportForm
|
OpenSongImportForm, OpenLPExportForm
|
||||||
|
|
||||||
|
|
|
@ -17,7 +17,7 @@ You should have received a copy of the GNU General Public License along with
|
||||||
this program; if not, write to the Free Software Foundation, Inc., 59 Temple
|
this program; if not, write to the Free Software Foundation, Inc., 59 Temple
|
||||||
Place, Suite 330, Boston, MA 02111-1307 USA
|
Place, Suite 330, Boston, MA 02111-1307 USA
|
||||||
"""
|
"""
|
||||||
import py.test
|
|
||||||
import os
|
import os
|
||||||
import sys
|
import sys
|
||||||
|
|
||||||
|
|
|
@ -24,10 +24,8 @@
|
||||||
###############################################################################
|
###############################################################################
|
||||||
|
|
||||||
import os
|
import os
|
||||||
import sys
|
|
||||||
import logging
|
import logging
|
||||||
import time
|
import time
|
||||||
import datetime
|
|
||||||
|
|
||||||
from openlp.migration.display import *
|
from openlp.migration.display import *
|
||||||
from openlp.migration.migratefiles import *
|
from openlp.migration.migratefiles import *
|
||||||
|
|
Loading…
Reference in New Issue