Remove unused imports

This commit is contained in:
Jon Tibble 2009-09-25 01:43:42 +01:00
parent cda41d8403
commit e5db2456e7
79 changed files with 129 additions and 226 deletions

View File

@ -25,7 +25,6 @@
import codecs
import sys
import chardet
def convert_file(inname, outname):
"""

View File

@ -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

View File

@ -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

View File

@ -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):
"""

View File

@ -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):
"""

View File

@ -23,8 +23,6 @@
###############################################################################
import logging
import os
import sys
from PyQt4 import QtGui, QtCore

View File

@ -23,9 +23,6 @@
###############################################################################
import logging
import os
import sys
import linecache
from PyQt4 import QtGui, QtCore

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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([])

View File

@ -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

View File

@ -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

View File

@ -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]

View File

@ -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,

View File

@ -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']

View File

@ -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')

View File

@ -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):
"""

View File

@ -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):

View File

@ -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):

View File

@ -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

View File

@ -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):
"""

View File

@ -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')

View File

@ -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):

View File

@ -23,7 +23,7 @@
###############################################################################
import os
import sys
from ConfigParser import SafeConfigParser
class Registry(object):

View File

@ -22,8 +22,6 @@
# Temple Place, Suite 330, Boston, MA 02111-1307 USA #
###############################################################################
import logging
class MigrateBibles():
def __init__(self, display):
self.display = display

View File

@ -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 *

View File

@ -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):
"""

View File

@ -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

View File

@ -24,7 +24,6 @@
from sqlalchemy import MetaData
from sqlalchemy.orm import scoped_session, sessionmaker
__all__ = ['session', 'metadata', 'engine']

View File

@ -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 *

View File

@ -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

View File

@ -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

View File

@ -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')

View File

@ -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):

View File

@ -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)')

View File

@ -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():

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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()

View File

@ -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()

View File

@ -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()

View File

@ -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()

View File

@ -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

View File

@ -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

View File

@ -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):

View File

@ -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):

View File

@ -23,7 +23,6 @@
###############################################################################
from sqlalchemy import MetaData
from sqlalchemy.orm import scoped_session, sessionmaker
__all__ = ['session', 'metadata', 'engine']

View File

@ -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 *

View File

@ -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

View File

@ -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

View File

@ -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):
"""

View File

@ -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.

View File

@ -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):

View File

@ -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):

View File

@ -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):

View File

@ -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

View File

@ -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):
"""

View File

@ -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

View File

@ -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):
"""

View File

@ -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

View File

@ -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):
"""

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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):

View File

@ -23,7 +23,6 @@
###############################################################################
from sqlalchemy import MetaData
from sqlalchemy.orm import scoped_session, sessionmaker
__all__ = ['session', 'metadata', 'engine']

View File

@ -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 *

View File

@ -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):

View File

@ -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

View File

@ -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

View File

@ -24,10 +24,8 @@
###############################################################################
import os
import sys
import logging
import time
import datetime
from openlp.migration.display import *
from openlp.migration.migratefiles import *