diff --git a/openlp/core/lib/theme.py b/openlp/core/lib/theme.py index 619d991c7..35b62ddda 100644 --- a/openlp/core/lib/theme.py +++ b/openlp/core/lib/theme.py @@ -527,15 +527,15 @@ class ThemeXML(object): value = u'' setattr(self, tag, unicode(value).strip().lstrip()) -# def __str__(self): -# """ -# Return a string representation of this object. -# """ -# theme_strings = [] -# for key in dir(self): -# if key[0:1] != u'_': -# theme_strings.append(u'%30s: %s' % (key, getattr(self, key))) -# return u'\n'.join(theme_strings) + def __str__(self): + """ + Return a string representation of this object. + """ + theme_strings = [] + for key in dir(self): + if key[0:1] != u'_': + theme_strings.append(u'%30s: %s' % (key, getattr(self, key))) + return u'\n'.join(theme_strings) def _de_hump(self, name): """ diff --git a/openlp/core/ui/themeform.py b/openlp/core/ui/themeform.py index c184585e6..a6e925707 100644 --- a/openlp/core/ui/themeform.py +++ b/openlp/core/ui/themeform.py @@ -125,10 +125,8 @@ class ThemeForm(QtGui.QWizard, Ui_ThemeWizard): """ Set up display at start of theme edit. """ - print "setdefaults 1", self.theme, self.theme.theme_name self.restart() self.accepted = False - print "setdefaults 2", self.theme, self.theme.theme_name self.setBackgroundPageValues() self.setMainAreaPageValues() self.setFooterAreaPageValues() @@ -288,7 +286,6 @@ class ThemeForm(QtGui.QWizard, Ui_ThemeWizard): Run the wizard. """ log.debug(u'Editing theme %s' % self.theme.theme_name) - print "exec_", self.theme, self.theme.theme_name self.updateThemeAllowed = False self.setDefaults() self.updateThemeAllowed = True @@ -324,7 +321,6 @@ class ThemeForm(QtGui.QWizard, Ui_ThemeWizard): """ Handle the display and state of the Background page. """ - print "setBPV", self.theme, self.theme.theme_name if self.theme.background_type == \ BackgroundType.to_string(BackgroundType.Solid): self.colorButton.setStyleSheet(u'background-color: %s' %