forked from openlp/openlp
Unused variable and import fixes
bzr-revno: 762
This commit is contained in:
commit
a6d2b0983c
@ -27,9 +27,9 @@ import os
|
|||||||
import sys
|
import sys
|
||||||
import sqlite3
|
import sqlite3
|
||||||
|
|
||||||
from sqlalchemy import *
|
from sqlalchemy import *
|
||||||
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.core.lib import PluginConfig
|
from openlp.core.lib import PluginConfig
|
||||||
from openlp.plugins.bibles.lib.models import *
|
from openlp.plugins.bibles.lib.models import *
|
||||||
@ -223,4 +223,3 @@ class MigrateBibles():
|
|||||||
conn.commit()
|
conn.commit()
|
||||||
conn.execute(u'vacuum;')
|
conn.execute(u'vacuum;')
|
||||||
conn.commit()
|
conn.commit()
|
||||||
|
|
||||||
|
@ -498,7 +498,6 @@ class EditSongForm(QtGui.QDialog, Ui_EditSongDialog):
|
|||||||
sxml = SongXMLBuilder()
|
sxml = SongXMLBuilder()
|
||||||
sxml.new_document()
|
sxml.new_document()
|
||||||
sxml.add_lyrics_to_song()
|
sxml.add_lyrics_to_song()
|
||||||
count = 1
|
|
||||||
text = u' '
|
text = u' '
|
||||||
for i in range (0, self.VerseListWidget.count()):
|
for i in range (0, self.VerseListWidget.count()):
|
||||||
item = self.VerseListWidget.item(i)
|
item = self.VerseListWidget.item(i)
|
||||||
@ -506,7 +505,6 @@ class EditSongForm(QtGui.QDialog, Ui_EditSongDialog):
|
|||||||
bits = verseId.split(u':')
|
bits = verseId.split(u':')
|
||||||
sxml.add_verse_to_lyrics(bits[0], bits[1], unicode(item.text()))
|
sxml.add_verse_to_lyrics(bits[0], bits[1], unicode(item.text()))
|
||||||
text = text + unicode(self.VerseListWidget.item(i).text()) + u' '
|
text = text + unicode(self.VerseListWidget.item(i).text()) + u' '
|
||||||
count += 1
|
|
||||||
text = text.replace(u'\'', u'')
|
text = text.replace(u'\'', u'')
|
||||||
text = text.replace(u',', u'')
|
text = text.replace(u',', u'')
|
||||||
text = text.replace(u';', u'')
|
text = text.replace(u';', u'')
|
||||||
|
@ -282,7 +282,7 @@ class SongMediaItem(MediaManagerItem):
|
|||||||
raw_footer = []
|
raw_footer = []
|
||||||
author_list = u''
|
author_list = u''
|
||||||
author_audit = []
|
author_audit = []
|
||||||
ccl = u''
|
ccli = u''
|
||||||
if self.remoteTriggered is None:
|
if self.remoteTriggered is None:
|
||||||
item = self.ListView.currentItem()
|
item = self.ListView.currentItem()
|
||||||
if item is None:
|
if item is None:
|
||||||
|
@ -206,7 +206,6 @@ def import_bible():
|
|||||||
rows = old_cursor.fetchall()
|
rows = old_cursor.fetchall()
|
||||||
if debug or verbose:
|
if debug or verbose:
|
||||||
print 'done.'
|
print 'done.'
|
||||||
song_map = {}
|
|
||||||
for row in rows:
|
for row in rows:
|
||||||
book_id = int(row[1])
|
book_id = int(row[1])
|
||||||
chapter = int(row[2])
|
chapter = int(row[2])
|
||||||
|
Loading…
Reference in New Issue
Block a user