From 78a6d20bb35f204faf4c34354d7a7421284d93ba Mon Sep 17 00:00:00 2001 From: Jon Tibble Date: Thu, 10 Jun 2010 14:20:43 +0100 Subject: [PATCH] Fix theme migration method parameters --- openlp/core/ui/thememanager.py | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/openlp/core/ui/thememanager.py b/openlp/core/ui/thememanager.py index f52beade4..41c2a9360 100644 --- a/openlp/core/ui/thememanager.py +++ b/openlp/core/ui/thememanager.py @@ -366,8 +366,7 @@ class ThemeManager(QtGui.QWidget): if os.path.splitext(file)[1].lower() in [u'.xml']: if self.checkVersion1(xml_data): # upgrade theme xml - filexml = self.migrateVersion122(filename, - fullpath, xml_data) + filexml = self.migrateVersion122(xml_data) else: filexml = xml_data outfile = open(fullpath, u'w') @@ -399,13 +398,12 @@ class ThemeManager(QtGui.QWidget): else: return True - def migrateVersion122(self, filename, fullpath, xml_data): + def migrateVersion122(self, xml_data): """ Called by convert the xml data from version 1 format to the current format. New fields are defaulted but the new theme is useable """ - log.debug(u'migrateVersion122 %s %s', filename, fullpath) theme = Theme(xml_data) newtheme = ThemeXML() newtheme.new_document(theme.Name)