MCPcopy Index your code
hub / github.com/diffgram/diffgram / serialize_for_source_control

Method serialize_for_source_control

shared/database/image.py:81–106  ·  view source on GitHub ↗
(self,
                                     session = None,
                                     connection_id = None,
                                     bucket_name = None,
                                     reference_file: 'File' = None,
                                     regen_url = True)

Source from the content-addressed store, hash-verified

79 return image
80
81 def serialize_for_source_control(self,
82 session = None,
83 connection_id = None,
84 bucket_name = None,
85 reference_file: 'File' = None,
86 regen_url = True):
87 if regen_url:
88 from shared.url_generation import blob_regenerate_url
89 blob_regenerate_url(blob_object = self,
90 session = session,
91 connection_id = connection_id,
92 bucket_name = bucket_name,
93 reference_file = reference_file)
94 return {
95 'original_filename': self.original_filename,
96 'width': self.width,
97 'height': self.height,
98 'rotation_degrees': self.rotation_degrees,
99 'soft_delete': self.soft_delete,
100 'url_signed': self.url_signed,
101 'url_signed_thumb': self.url_signed_thumb,
102 'error': self.error,
103 'url_signed_blob_path': self.url_signed_blob_path,
104 'annotation_status': self.annotation_status,
105 'id': self.id
106 }

Callers 4

get_file_signed_url_coreFunction · 0.45
build_image_packetFunction · 0.45

Calls 1

blob_regenerate_urlFunction · 0.90

Tested by

no test coverage detected