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
1=== modified file 'openlp/core/lib/renderer.py'
2--- openlp/core/lib/renderer.py 2011-10-12 04:51:03 +0000
3+++ openlp/core/lib/renderer.py 2011-10-16 14:49:24 +0000
4@@ -57,14 +57,14 @@
5
6 def __init__(self, imageManager, themeManager):
7 """
8- Initialise the render manager.
9+ Initialise the renderer.
10
11 ``imageManager``
12- A ImageManager instance which takes care of e. g. caching and resizing
13+ A imageManager instance which takes care of e. g. caching and resizing
14 images.
15
16 ``themeManager``
17- The ThemeManager instance, used to get the current theme details.
18+ The themeManager instance, used to get the current theme details.
19 """
20 log.debug(u'Initialisation started')
21 self.themeManager = themeManager
22@@ -81,7 +81,7 @@
23
24 def update_display(self):
25 """
26- Updates the render manager's information about the current screen.
27+ Updates the renderer's information about the current screen.
28 """
29 log.debug(u'Update Display')
30 self._calculate_default()
31
32=== modified file 'openlp/core/lib/serviceitem.py'
33--- openlp/core/lib/serviceitem.py 2011-10-03 16:53:54 +0000
34+++ openlp/core/lib/serviceitem.py 2011-10-16 14:49:24 +0000
35@@ -122,9 +122,8 @@
36
37 def _new_item(self):
38 """
39- Method to set the internal id of the item
40- This is used to compare service items to see if they are
41- the same
42+ Method to set the internal id of the item. This is used to compare
43+ service items to see if they are the same.
44 """
45 self._uuid = unicode(uuid.uuid1())
46
47@@ -160,9 +159,8 @@
48 def render(self, use_override=False):
49 """
50 The render method is what generates the frames for the screen and
51- obtains the display information from the renderemanager.
52- At this point all the slides are built for the given
53- display size.
54+ obtains the display information from the renderer. At this point all
55+ slides are built for the given display size.
56 """
57 log.debug(u'Render called')
58 self._display_frames = []
59
60=== modified file 'openlp/core/ui/maindisplay.py'
61--- openlp/core/ui/maindisplay.py 2011-10-03 17:27:34 +0000
62+++ openlp/core/ui/maindisplay.py 2011-10-16 14:49:24 +0000
63@@ -355,7 +355,7 @@
64 """
65 # We request a background video but have no service Item
66 if isBackground and not hasattr(self, u'serviceItem'):
67- return None
68+ return False
69 if not self.mediaObject:
70 self.createMediaObject()
71 log.debug(u'video')
72@@ -385,6 +385,7 @@
73 # Update the preview frame.
74 if self.isLive:
75 Receiver.send_message(u'maindisplay_active')
76+ return True
77
78 def videoState(self, newState, oldState):
79 """
80
81=== modified file 'openlp/plugins/media/lib/mediaitem.py'
82--- openlp/plugins/media/lib/mediaitem.py 2011-09-06 17:53:43 +0000
83+++ openlp/plugins/media/lib/mediaitem.py 2011-10-16 14:49:24 +0000
84@@ -39,7 +39,7 @@
85
86 log = logging.getLogger(__name__)
87
88-CLAPPERBOARD = QtGui.QPixmap(u':/media/media_video.png').toImage()
89+CLAPPERBOARD = QtGui.QImage(u':/media/media_video.png')
90
91 class MediaMediaItem(MediaManagerItem):
92 """
93@@ -95,14 +95,14 @@
94
95 def onResetClick(self):
96 """
97- Called to reset the Live backgound with the media selected,
98+ Called to reset the Live backgound with the media selected.
99 """
100 self.resetAction.setVisible(False)
101 self.plugin.liveController.display.resetVideo()
102
103 def videobackgroundReplaced(self):
104 """
105- Triggered by main display on change of serviceitem
106+ Triggered by main display on change of serviceitem.
107 """
108 self.resetAction.setVisible(False)
109
110@@ -179,8 +179,7 @@
111
112 def mediaStateWait(self, mediaState):
113 """
114- Wait for the video to change its state
115- Wait no longer than 5 seconds.
116+ Wait for the video to change its state. Wait no longer than 5 seconds.
117 """
118 start = datetime.now()
119 while self.mediaObject.state() != mediaState:
120@@ -198,7 +197,7 @@
121
122 def onDeleteClick(self):
123 """
124- Remove a media item from the list
125+ Remove a media item from the list.
126 """
127 if check_item_selected(self.listView, translate('MediaPlugin.MediaItem',
128 'You must select a media file to delete.')):