Load the image part collection with all the image parts in package.
(self)
| 36 | return ImageParts() |
| 37 | |
| 38 | def _gather_image_parts(self): |
| 39 | """Load the image part collection with all the image parts in package.""" |
| 40 | for rel in self.iter_rels(): |
| 41 | if rel.is_external: |
| 42 | continue |
| 43 | if rel.reltype != RT.IMAGE: |
| 44 | continue |
| 45 | if rel.target_part in self.image_parts: |
| 46 | continue |
| 47 | self.image_parts.append(cast("ImagePart", rel.target_part)) |
| 48 | |
| 49 | |
| 50 | class ImageParts: |
no test coverage detected