(self, content, name=None, content_type=None,
                            content_length=None)
Ensure the attachment is available through lazy_fetch_attachment
        and that upon self.save(), the attachments are put to the doc as well
Ensure the attachment is available through lazy_fetch_attachment
        and that upon self.save(), the attachments are put to the doc as well
Ensure the attachment is available through lazy_fetch_attachment and that upon self . save () the attachments are put to the doc as well
def lazy_put_attachment(self, content, name=None, content_type=None,
                            content_length=None):
        """
        Ensure the attachment is available through lazy_fetch_attachment
        and that upon self.save(), the attachments are put to the doc as well

        """
        self._LAZY_ATTACHMENTS[name] = {
            'content': content,
            'content_type': content_type,
            'content_length': content_length,
        }
def lazy_put_attachment ( self , content , name = None , content_type = None , content_length = None ) : self . _LAZY_ATTACHMENTS [ name ] = { 'content' : content , 'content_type' : content_type , 'content_length' : content_length , }