← Back to team overview

openlp-core team mailing list archive

[Merge] lp:~googol/openlp/random-regression-bugs into lp:openlp

 

Andreas Preikschat has proposed merging lp:~googol/openlp/random-regression-bugs into lp:openlp.

Requested reviews:
  OpenLP Core (openlp-core)

For more details, see:
https://code.launchpad.net/~googol/openlp/random-regression-bugs/+merge/155177

- fixed regression in bible manager
- fixed wrong Registry usage
- fixed method/argument renames
- fixed more regression bugs
-- 
https://code.launchpad.net/~googol/openlp/random-regression-bugs/+merge/155177
Your team OpenLP Core is requested to review the proposed merge of lp:~googol/openlp/random-regression-bugs into lp:openlp.
=== modified file 'openlp/core/ui/maindisplay.py'
--- openlp/core/ui/maindisplay.py	2013-03-10 20:19:42 +0000
+++ openlp/core/ui/maindisplay.py	2013-03-25 07:37:23 +0000
@@ -175,7 +175,7 @@
         We need to rebuild the CSS on the live display.
         """
         for plugin in self.plugin_manager.plugins:
-            plugin.refreshCss(self.frame)
+            plugin.refresh_css(self.frame)
 
     def retranslateUi(self):
         """

=== modified file 'openlp/core/ui/themestab.py'
--- openlp/core/ui/themestab.py	2013-03-17 09:21:18 +0000
+++ openlp/core/ui/themestab.py	2013-03-25 07:37:23 +0000
@@ -184,7 +184,7 @@
         """
         self.global_theme = self.default_combo_box.currentText()
         self.renderer.set_global_theme()
-        self._previewGlobalTheme()
+        self._preview_global_theme()
 
     def update_theme_list(self, theme_list):
         """

=== modified file 'openlp/plugins/alerts/alertsplugin.py'
--- openlp/plugins/alerts/alertsplugin.py	2013-03-19 19:43:22 +0000
+++ openlp/plugins/alerts/alertsplugin.py	2013-03-25 07:37:23 +0000
@@ -225,7 +225,7 @@
         ``frame``
             The Web frame holding the page.
         """
-        align = VerticalType.Names[self.settingsTab.location]
+        align = VerticalType.Names[self.settings_tab.location]
         frame.evaluateJavaScript(u'update_css("%s", "%s", "%s", "%s", "%s")' %
-            (align, self.settingsTab.font_face, self.settingsTab.font_size,
-            self.settingsTab.font_color, self.settingsTab.background_color))
+            (align, self.settings_tab.font_face, self.settings_tab.font_size,
+            self.settings_tab.font_color, self.settings_tab.background_color))

=== modified file 'openlp/plugins/alerts/lib/alertsmanager.py'
--- openlp/plugins/alerts/lib/alertsmanager.py	2013-02-16 10:40:05 +0000
+++ openlp/plugins/alerts/lib/alertsmanager.py	2013-03-25 07:37:23 +0000
@@ -87,7 +87,7 @@
         if not self.alert_list:
             return
         text = self.alert_list.pop(0)
-        alertTab = self.parent().settingsTab
+        alertTab = self.parent().settings_tab
         self.live_controller.display.alert(text, alertTab.location)
         # Check to see if we have a timer running.
         if self.timer_id == 0:
@@ -103,7 +103,7 @@
         """
         log.debug(u'timer event')
         if event.timerId() == self.timer_id:
-            alertTab = self.parent().settingsTab
+            alertTab = self.parent().settings_tab
             self.live_controller.display.alert(u'', alertTab.location)
         self.killTimer(self.timer_id)
         self.timer_id = 0

=== modified file 'openlp/plugins/bibles/lib/biblestab.py'
--- openlp/plugins/bibles/lib/biblestab.py	2013-03-17 10:23:15 +0000
+++ openlp/plugins/bibles/lib/biblestab.py	2013-03-25 07:37:23 +0000
@@ -206,7 +206,7 @@
         self.layout_style = self.layout_style_combo_box.currentIndex()
 
     def on_language_selection_combo_box_changed(self):
-        self.language_selection = self.language_selectioncombo_box.currentIndex()
+        self.language_selection = self.language_selection_combo_box.currentIndex()
 
     def on_new_chapters_check_box_changed(self, check_state):
         self.show_new_chapters = False

=== modified file 'openlp/plugins/bibles/lib/mediaitem.py'
--- openlp/plugins/bibles/lib/mediaitem.py	2013-03-19 22:00:50 +0000
+++ openlp/plugins/bibles/lib/mediaitem.py	2013-03-25 07:37:23 +0000
@@ -516,13 +516,13 @@
     def onQuickStyleComboBoxChanged(self):
         self.settings.layout_style = self.quickStyleComboBox.currentIndex()
         self.advancedStyleComboBox.setCurrentIndex(self.settings.layout_style)
-        self.settings.layoutStyleComboBox.setCurrentIndex(self.settings.layout_style)
+        self.settings.layout_style_combo_box.setCurrentIndex(self.settings.layout_style)
         Settings().setValue(self.settings_section + u'/verse layout style', self.settings.layout_style)
 
     def onAdvancedStyleComboBoxChanged(self):
         self.settings.layout_style = self.advancedStyleComboBox.currentIndex()
         self.quickStyleComboBox.setCurrentIndex(self.settings.layout_style)
-        self.settings.layoutStyleComboBox.setCurrentIndex(self.settings.layout_style)
+        self.settings.layout_style_combo_box.setCurrentIndex(self.settings.layout_style)
         Settings().setValue(self.settings_section + u'/verse layout style', self.settings.layout_style)
 
     def onAdvancedVersionComboBox(self):

=== modified file 'openlp/plugins/media/mediaplugin.py'
--- openlp/plugins/media/mediaplugin.py	2013-03-19 20:05:13 +0000
+++ openlp/plugins/media/mediaplugin.py	2013-03-25 07:37:23 +0000
@@ -127,6 +127,7 @@
         Plugin.app_startup(self)
         settings = Settings()
         settings.beginGroup(self.settings_section)
+        # FIXME: Probably broken due to Settings rewrite.
         if settings.contains(u'use phonon'):
             log.info(u'Found old Phonon setting')
             players = self.media_controller.mediaPlayers.keys()
@@ -139,7 +140,7 @@
                 new_players.insert(0, u'phonon')
                 self.media_controller.mediaPlayers[u'phonon'].is_active = True
                 settings.setValue(u'players', u','.join(new_players))
-                self.settingsTab.load()
+                self.settings_tab.load()
             settings.remove(u'use phonon')
         settings.endGroup()
 

=== modified file 'openlp/plugins/remotes/lib/remotetab.py'
--- openlp/plugins/remotes/lib/remotetab.py	2013-03-16 20:52:59 +0000
+++ openlp/plugins/remotes/lib/remotetab.py	2013-03-25 07:37:23 +0000
@@ -150,7 +150,7 @@
         Settings().setValue(self.settings_section + u'/ip address', self.address_edit.text())
         Settings().setValue(self.settings_section + u'/twelve hour', self.twelve_hour)
         if changed:
-            Registry().register_function(u'remotes_config_updated')
+            Registry().execute(u'remotes_config_updated')
 
     def onTwelveHourCheckBoxChanged(self, check_state):
         self.twelve_hour = False


Follow ups