Few cleanups

This commit is contained in:
Jon Tibble 2011-01-26 02:43:16 +00:00
parent 59a8480c3e
commit f484286f8a
3 changed files with 7 additions and 7 deletions

View File

@ -92,7 +92,7 @@ class BibleFormat(object):
return None
@staticmethod
def list():
def get_formats_list():
"""
Return a list of the supported Bible formats.
"""

View File

@ -314,11 +314,11 @@ class EasiSlidesImport(SongImport):
pass
def _listHas(self, lst, subitems):
for i in subitems:
if type(lst) == type({}) and lst.has_key(i):
lst = lst[i]
elif type(lst) == type([]) and i in lst:
lst = lst[i]
for subitem in subitems:
if isinstance(lst, dict) and lst.has_key(subitem):
lst = lst[subitem]
elif isinstance(lst, list) and subitem in lst:
lst = lst[subitem]
else:
return False
return True

View File

@ -105,7 +105,7 @@ class SongFormat(object):
return None
@staticmethod
def list():
def get_formats_list():
"""
Return a list of the supported song formats.
"""