~wgrant/openlp/openlyrics_test

« back to all changes in this revision

Viewing changes to openlp/plugins/presentations/lib/mediaitem.py

  • Committer: Martin Zibricky
  • Date: 2011-09-10 17:28:11 UTC
  • mfrom: (1186.2.556 openlp)
  • Revision ID: mzibr.public@gmail.com-20110910172811-fce79ngmns3ar64b
[merge] merge with trunk r1742

Show diffs side-by-side

added added

removed removed

Lines of Context:
233
233
            SettingsManager.set_list(self.settingsSection,
234
234
                u'presentations', self.getFileList())
235
235
 
236
 
    def generateSlideData(self, service_item, item=None, xmlVersion=False):
 
236
    def generateSlideData(self, service_item, item=None, xmlVersion=False,
 
237
        remote=False):
237
238
        """
238
239
        Load the relevant information for displaying the presentation
239
240
        in the slidecontroller. In the case of powerpoints, an image
275
276
                        return True
276
277
                    else:
277
278
                        # File is no longer present
278
 
                        critical_error_message_box(
279
 
                            translate('PresentationPlugin.MediaItem',
280
 
                            'Missing Presentation'),
281
 
                            unicode(translate('PresentationPlugin.MediaItem',
282
 
                            'The Presentation %s is incomplete,'
283
 
                            ' please reload.')) % filename)
 
279
                        if not remote:
 
280
                            critical_error_message_box(
 
281
                                translate('PresentationPlugin.MediaItem',
 
282
                                'Missing Presentation'),
 
283
                                unicode(translate('PresentationPlugin.MediaItem',
 
284
                                'The Presentation %s is incomplete,'
 
285
                                ' please reload.')) % filename)
284
286
                        return False
285
287
                else:
286
288
                    # File is no longer present