1
0
mirror of https://gitlab.com/openlp/openlp.git synced 2024-09-29 11:27:36 +00:00

Made changes as to Jonathan's requests

This commit is contained in:
Philip Ridout 2012-03-27 21:09:01 +01:00
parent 5925fb624e
commit 7260dee1d6
2 changed files with 5 additions and 8 deletions

View File

@ -31,15 +31,12 @@ DreamBeam songs into the OpenLP database.
import os, sys
import logging
from lxml import etree, objectify
from lxml import etree, objectify
from openlp.core.lib import translate
from openlp.plugins.songs.lib.songimport import SongImport
from openlp.plugins.songs.lib.ui import SongStrings
log = logging.getLogger(__name__)
class DreamBeamImport(SongImport):
@ -87,7 +84,7 @@ class DreamBeamImport(SongImport):
def __init__(self, manager, **kwargs):
"""
Initialise the Words of Worship importer.
Initialise the DreamBeam importer.
"""
SongImport.__init__(self, manager, **kwargs)
@ -119,8 +116,8 @@ class DreamBeamImport(SongImport):
if hasattr(song_xml, u'Title'):
self.title = unicode(song_xml.Title.text)
if hasattr(song_xml, u'Author'):
# Dreambeam does not have a copyright field, instead it
# some times uses the author feild
# DreamBeam does not have a copyright field, instead it
# some times uses the author field
self.addCopyright(unicode(song_xml.Author.text))
self.parseAuthor(unicode(song_xml.Author.text))
if hasattr(song_xml, u'SongLyrics'):

View File

@ -26,7 +26,7 @@
###############################################################################
"""
The :mod:`songshowplusimport` module provides the functionality for importing
Song Show Plus songs into the OpenLP database.
SongShow Plus songs into the OpenLP database.
"""
import os
import logging