forked from openlp/openlp
Code Cleanups
bzr-revno: 1090
This commit is contained in:
commit
da3db82d24
@ -399,6 +399,6 @@ class ServiceItem(object):
|
|||||||
|
|
||||||
def get_frame_path(self, row=0):
|
def get_frame_path(self, row=0):
|
||||||
"""
|
"""
|
||||||
Returns the title of the raw frame
|
Returns the path of the raw frame
|
||||||
"""
|
"""
|
||||||
return self._raw_frames[row][u'path']
|
return self._raw_frames[row][u'path']
|
||||||
|
@ -999,4 +999,3 @@ class SlideController(QtGui.QWidget):
|
|||||||
self.video.hide()
|
self.video.hide()
|
||||||
self.SlidePreview.clear()
|
self.SlidePreview.clear()
|
||||||
self.SlidePreview.show()
|
self.SlidePreview.show()
|
||||||
|
|
||||||
|
@ -130,8 +130,7 @@ class SongBeamerImport(SongImport):
|
|||||||
|
|
||||||
def parse_tags(self, line):
|
def parse_tags(self, line):
|
||||||
tag_val = line.split('=')
|
tag_val = line.split('=')
|
||||||
if len(tag_val[0]) == 0 or \
|
if len(tag_val[0]) == 0 or len(tag_val[1]) == 0:
|
||||||
len(tag_val[1]) == 0:
|
|
||||||
return True
|
return True
|
||||||
if tag_val[0] == '#(c)':
|
if tag_val[0] == '#(c)':
|
||||||
self.add_copyright(tag_val[1])
|
self.add_copyright(tag_val[1])
|
||||||
@ -228,8 +227,7 @@ class SongBeamerImport(SongImport):
|
|||||||
|
|
||||||
def check_verse_marks(self, line):
|
def check_verse_marks(self, line):
|
||||||
marks = line.split(' ')
|
marks = line.split(' ')
|
||||||
if len(marks) <= 2 and \
|
if len(marks) <= 2 and marks[0] in SongBeamerTypes.MarkTypes:
|
||||||
marks[0] in SongBeamerTypes.MarkTypes:
|
|
||||||
self.current_verse_type = SongBeamerTypes.MarkTypes[marks[0]]
|
self.current_verse_type = SongBeamerTypes.MarkTypes[marks[0]]
|
||||||
if len(marks) == 2:
|
if len(marks) == 2:
|
||||||
#TODO: may check, because of only digits are allowed
|
#TODO: may check, because of only digits are allowed
|
||||||
|
Loading…
Reference in New Issue
Block a user