Merge lp:~googol-deactivatedaccount/openlp/bug-871272 into lp:openlp

Proposed by Andreas Preikschat
Status: Merged
Approved by: Tim Bentley
Approved revision: 1777
Merged at revision: 1776
Proposed branch: lp:~googol-deactivatedaccount/openlp/bug-871272
Merge into: lp:openlp
Diff against target: 128 lines (+15/-17)
4 files modified
openlp/core/lib/renderer.py (+4/-4)
openlp/core/lib/serviceitem.py (+4/-6)
openlp/core/ui/maindisplay.py (+2/-1)
openlp/plugins/media/lib/mediaitem.py (+5/-6)
To merge this branch: bzr merge lp:~googol-deactivatedaccount/openlp/bug-871272
Reviewer Review Type Date Requested Status
Tim Bentley Approve
Review via email: mp+79494@code.launchpad.net

This proposal supersedes a proposal from 2011-10-15.

Commit message

- Fixed bug 871272 (When slides are in the foreground openlp reports 'Error: No display item to ammend' in latest build)
- Docstrings

Description of the change

Hello,

1) Fixed bug 871272 (When slides are in the foreground openlp reports 'Error: No display item to ammend' in latest build)
2) Docstrings

To post a comment you must log in.
Revision history for this message
Tim Bentley (trb143) wrote : Posted in a previous version of this proposal

rendermanager does not exist any more so needs to be changed to renderer.

review: Needs Fixing
Revision history for this message
Tim Bentley (trb143) :
review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
=== modified file 'openlp/core/lib/renderer.py'
--- openlp/core/lib/renderer.py 2011-10-12 04:51:03 +0000
+++ openlp/core/lib/renderer.py 2011-10-16 14:49:24 +0000
@@ -57,14 +57,14 @@
5757
58 def __init__(self, imageManager, themeManager):58 def __init__(self, imageManager, themeManager):
59 """59 """
60 Initialise the render manager.60 Initialise the renderer.
6161
62 ``imageManager``62 ``imageManager``
63 A ImageManager instance which takes care of e. g. caching and resizing63 A imageManager instance which takes care of e. g. caching and resizing
64 images.64 images.
6565
66 ``themeManager``66 ``themeManager``
67 The ThemeManager instance, used to get the current theme details.67 The themeManager instance, used to get the current theme details.
68 """68 """
69 log.debug(u'Initialisation started')69 log.debug(u'Initialisation started')
70 self.themeManager = themeManager70 self.themeManager = themeManager
@@ -81,7 +81,7 @@
8181
82 def update_display(self):82 def update_display(self):
83 """83 """
84 Updates the render manager's information about the current screen.84 Updates the renderer's information about the current screen.
85 """85 """
86 log.debug(u'Update Display')86 log.debug(u'Update Display')
87 self._calculate_default()87 self._calculate_default()
8888
=== modified file 'openlp/core/lib/serviceitem.py'
--- openlp/core/lib/serviceitem.py 2011-10-03 16:53:54 +0000
+++ openlp/core/lib/serviceitem.py 2011-10-16 14:49:24 +0000
@@ -122,9 +122,8 @@
122122
123 def _new_item(self):123 def _new_item(self):
124 """124 """
125 Method to set the internal id of the item125 Method to set the internal id of the item. This is used to compare
126 This is used to compare service items to see if they are126 service items to see if they are the same.
127 the same
128 """127 """
129 self._uuid = unicode(uuid.uuid1())128 self._uuid = unicode(uuid.uuid1())
130129
@@ -160,9 +159,8 @@
160 def render(self, use_override=False):159 def render(self, use_override=False):
161 """160 """
162 The render method is what generates the frames for the screen and161 The render method is what generates the frames for the screen and
163 obtains the display information from the renderemanager.162 obtains the display information from the renderer. At this point all
164 At this point all the slides are built for the given163 slides are built for the given display size.
165 display size.
166 """164 """
167 log.debug(u'Render called')165 log.debug(u'Render called')
168 self._display_frames = []166 self._display_frames = []
169167
=== modified file 'openlp/core/ui/maindisplay.py'
--- openlp/core/ui/maindisplay.py 2011-10-03 17:27:34 +0000
+++ openlp/core/ui/maindisplay.py 2011-10-16 14:49:24 +0000
@@ -355,7 +355,7 @@
355 """355 """
356 # We request a background video but have no service Item356 # We request a background video but have no service Item
357 if isBackground and not hasattr(self, u'serviceItem'):357 if isBackground and not hasattr(self, u'serviceItem'):
358 return None358 return False
359 if not self.mediaObject:359 if not self.mediaObject:
360 self.createMediaObject()360 self.createMediaObject()
361 log.debug(u'video')361 log.debug(u'video')
@@ -385,6 +385,7 @@
385 # Update the preview frame.385 # Update the preview frame.
386 if self.isLive:386 if self.isLive:
387 Receiver.send_message(u'maindisplay_active')387 Receiver.send_message(u'maindisplay_active')
388 return True
388389
389 def videoState(self, newState, oldState):390 def videoState(self, newState, oldState):
390 """391 """
391392
=== modified file 'openlp/plugins/media/lib/mediaitem.py'
--- openlp/plugins/media/lib/mediaitem.py 2011-09-06 17:53:43 +0000
+++ openlp/plugins/media/lib/mediaitem.py 2011-10-16 14:49:24 +0000
@@ -39,7 +39,7 @@
3939
40log = logging.getLogger(__name__)40log = logging.getLogger(__name__)
4141
42CLAPPERBOARD = QtGui.QPixmap(u':/media/media_video.png').toImage()42CLAPPERBOARD = QtGui.QImage(u':/media/media_video.png')
4343
44class MediaMediaItem(MediaManagerItem):44class MediaMediaItem(MediaManagerItem):
45 """45 """
@@ -95,14 +95,14 @@
9595
96 def onResetClick(self):96 def onResetClick(self):
97 """97 """
98 Called to reset the Live backgound with the media selected,98 Called to reset the Live backgound with the media selected.
99 """99 """
100 self.resetAction.setVisible(False)100 self.resetAction.setVisible(False)
101 self.plugin.liveController.display.resetVideo()101 self.plugin.liveController.display.resetVideo()
102102
103 def videobackgroundReplaced(self):103 def videobackgroundReplaced(self):
104 """104 """
105 Triggered by main display on change of serviceitem105 Triggered by main display on change of serviceitem.
106 """106 """
107 self.resetAction.setVisible(False)107 self.resetAction.setVisible(False)
108108
@@ -179,8 +179,7 @@
179179
180 def mediaStateWait(self, mediaState):180 def mediaStateWait(self, mediaState):
181 """181 """
182 Wait for the video to change its state182 Wait for the video to change its state. Wait no longer than 5 seconds.
183 Wait no longer than 5 seconds.
184 """183 """
185 start = datetime.now()184 start = datetime.now()
186 while self.mediaObject.state() != mediaState:185 while self.mediaObject.state() != mediaState:
@@ -198,7 +197,7 @@
198197
199 def onDeleteClick(self):198 def onDeleteClick(self):
200 """199 """
201 Remove a media item from the list200 Remove a media item from the list.
202 """201 """
203 if check_item_selected(self.listView, translate('MediaPlugin.MediaItem',202 if check_item_selected(self.listView, translate('MediaPlugin.MediaItem',
204 'You must select a media file to delete.')):203 'You must select a media file to delete.')):