def append(self, 
                        se_iri = None,  
                        
                        payload = None,       # These need to be set to upload a file      
                        filename = None,      # According to spec, "The client MUST supply a Content-Disposition header with a filename parameter 
                                            #                     (note that this requires the filename be expressed in ASCII)."
                        mimetype = None,
                        packaging = None,
                        md5sum=None,               # optional; will be calculated for you otherwise
                        
                        on_behalf_of = None,
                        metadata_entry = None,
                        metadata_relevant = False,
                        in_progress = False,
                        dr = None
                        ):
        
        if not se_iri:
            if dr != None:
                conn_l.info("Using the deposit receipt to get the SWORD2-Edit-IRI")
                se_iri = dr.se_iri
                if se_iri:
                    conn_l.info("Update Resource via SWORD2-Edit-IRI %s" % se_iri)
                else:
                    # we could try the edit IRI although technically that's not what it's for
                    se_iri = dr.edit
                    if se_iri:
                        conn_l.info("Complete deposit using the Edit-IRI %s as SWORD2-Edit-IRI not available" % se_iri)
                    else:
                        raise Exception("No SWORD2-Edit-IRI was given and no suitable IRI was found in the deposit receipt.")
            else:
                raise Exception("No SWORD2-Edit-IRI was given")
        else:
            conn_l.info("Update Resource via SWORD2-Edit-IRI %s" % se_iri)

        conn_l.info("Adding new file, metadata or both to a SWORD deposit via SWORD-Edit-IRI %s" % se_iri)
        return self._make_request(target_iri = se_iri,
                                  payload=payload,
                                  mimetype=mimetype,
                                  packaging=packaging,
                                  filename=filename,
                                  metadata_entry=metadata_entry,
                                  on_behalf_of=on_behalf_of,
                                  in_progress=in_progress, 
                                  method="POST",
                                  metadata_relevant=metadata_relevant,
                                  request_type='SE_IRI POST (APPEND PKG)',
                                  md5sum=md5sum)
compute() -> None
dataset/ETHPy150Open swordapp/python-client-sword2/sword2/connection.py/Connection.append--crossover with--dataset/ETHPy150Open VisTrails/VisTrails/contrib/titan/vtkviewcell.py/VTKViewCell.compute