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