Returns a bytestring representing the contents of the asset.
(self)
| 564 | raise ValueError(_INVALID_MESH_EXTENSION.format(extension)) |
| 565 | |
| 566 | def get_contents(self): |
| 567 | """Returns a bytestring representing the contents of the asset.""" |
| 568 | if self._value is None: |
| 569 | raise RuntimeError('You must assign a value to this attribute before ' |
| 570 | 'querying the contents.') |
| 571 | return self._value.contents |
| 572 | |
| 573 | def to_xml_string(self, prefix_root=None, **kwargs): |
| 574 | """Returns the asset filename as it will appear in the generated XML.""" |
no outgoing calls
no test coverage detected