(self, xform)
Copy attachments from the given xform
Copy attachments from the given xform
Copy attachments from the given xform
def copy_attachments(self, xform):
        """Copy attachments from the given xform"""
        existing_names = {a.name for a in self.attachments_list}
        self.attachments_list.extend(
            Attachment(meta.name, meta, meta.content_type, meta.properties)
            for meta in xform.attachments.values()
            if meta.name not in existing_names
        )
def copy_attachments ( self , xform ) : existing_names = { a . name for a in self . attachments_list } self . attachments_list . extend ( Attachment ( meta . name , meta , meta . content_type , meta . properties ) for meta in xform . attachments . values ( ) if meta . name not in existing_names )