(self, session)
| 335 | } |
| 336 | |
| 337 | def get_signed_url(self, session): |
| 338 | if self.type == "image": |
| 339 | if self.image: |
| 340 | serialized = self.image.serialize_for_source_control(session, refrence_file = self) |
| 341 | return serialized['url_signed'] |
| 342 | # Do we want to throw an error here? should be pretty rare no image if type image |
| 343 | |
| 344 | if self.type == "video": |
| 345 | if self.video: |
| 346 | self.video.regenerate_url(session, self.project) |
| 347 | return self.video.file_signed_url |
| 348 | |
| 349 | if self.type == "text": |
| 350 | if self.text_file: |
| 351 | serialized = self.text_file.serialize(session) |
| 352 | return serialized['url_signed'] |
| 353 | return None |
| 354 | |
| 355 | def get_blob_path(self): |
| 356 | if self.type == "image": |
no test coverage detected