コード例 #1
0
ファイル: opfmanifest.py プロジェクト: mihailim/yael
    def image_items(self):
        """
        The list of items with `media-type` associated with image formats.

        :rtype: list of :class:`yael.opfitem.OPFItem` objects
        """
        return list(e for e in self.items if MediaType.is_image(e.v_media_type))
コード例 #2
0
    def image_items(self):
        """
        The list of items with `media-type` associated with image formats.

        :rtype: list of :class:`yael.opfitem.OPFItem` objects
        """
        return list(e for e in self.items
                    if MediaType.is_image(e.v_media_type))