~phill-ridout/openlp/fixes-I

« back to all changes in this revision

Viewing changes to openlp/core/lib/mediamanageritem.py

  • Committer: Philip Ridout
  • Date: 2019-03-17 10:01:52 UTC
  • Revision ID: phill.ridout@gmail.com-20190317100152-b3x00jn0yuv0iet8
More pathlib clean ups

Show diffs side-by-side

added added

removed removed

Lines of Context:
454
454
        """
455
455
        pass
456
456
 
457
 
    def generate_slide_data(self, service_item, item=None, xml_version=False, remote=False,
458
 
                            context=ServiceItemContext.Live):
 
457
    def generate_slide_data(self, service_item, *, item=None, xml_version=False, remote=False,
 
458
                            context=ServiceItemContext.Live, file_path=None):
459
459
        """
460
460
        Generate the slide data. Needs to be implemented by the plugin.
 
461
 
461
462
        :param service_item: The service Item to be processed
462
463
        :param item: The database item to be used to build the service item
463
464
        :param xml_version:
464
465
        :param remote: Was this remote triggered (False)
465
466
        :param context: The service context
 
467
        :param openlp.core.common.path.Path file_path:
466
468
        """
467
469
        raise NotImplementedError('MediaManagerItem.generate_slide_data needs to be defined by the plugin')
468
470
 
634
636
        """
635
637
        service_item = ServiceItem(self.plugin)
636
638
        service_item.add_icon()
637
 
        if self.generate_slide_data(service_item, item, xml_version, remote, context):
 
639
        if self.generate_slide_data(service_item, item=item, xml_version=xml_version, remote=remote, context=context):
638
640
            return service_item
639
641
        else:
640
642
            return None