From 0d1f8435845e014747eed8bef1aec071ad1ff402 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=A9mie=20Nau?= <> Date: Thu, 24 Nov 2011 20:28:03 +0100 Subject: [PATCH] fixed method names --- openlp/plugins/songs/lib/ewimport.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/openlp/plugins/songs/lib/ewimport.py b/openlp/plugins/songs/lib/ewimport.py index e89fbc4a0..8dfa636e8 100644 --- a/openlp/plugins/songs/lib/ewimport.py +++ b/openlp/plugins/songs/lib/ewimport.py @@ -242,7 +242,7 @@ class EasyWorshipSongImport(SongImport): if self.stopImportFlag: break raw_record = db_file.read(record_size) - self.fields = self.record_struct.unpack(raw_record) + self.fields = self.recordStruct.unpack(raw_record) self.setDefaults() self.title = self.getField(fi_title) # Get remaining fields. @@ -321,11 +321,11 @@ class EasyWorshipSongImport(SongImport): db_file.close() self.memoFile.close() - def find_field(self, field_name): + def findField(self, field_name): return [i for i, x in enumerate(self.fieldDescs) if x.name == field_name][0] - def set_record_struct(self, field_descs): + def setRecordStruct(self, field_descs): # Begin with empty field struct list fsl = ['>'] for field_desc in field_descs: @@ -355,7 +355,7 @@ class EasyWorshipSongImport(SongImport): self.recordStruct = struct.Struct(''.join(fsl)) self.fieldDescs = field_descs - def get_field(self, field_desc_index): + def getField(self, field_desc_index): field = self.fields[field_desc_index] field_desc = self.fieldDescs[field_desc_index] # Return None in case of 'blank' entries