bversion/backup/s3_interface.py
def put_object(conn, key, contents, meta=None):
    """ Creates an object or object revision on s3 """

    if meta is None:
        k = conn['client'].put_object(Bucket=conn['bucket'], Key=key, Body=contents)
    else:
        k = conn['client'].put_object(Bucket=conn['bucket'], Key=key, Body=contents, Metadata=meta)
    return {'key': key, 'version_id' : k['VersionId']}
 Creates an object or object revision on s3 
Creates an object or object revision on s3
Creates an object or object revision on s3
def put_object(conn, key, contents, meta=None):
    if meta is None:
        k = conn['client'].put_object(Bucket=conn['bucket'], Key=key, Body=contents)
    else:
        k = conn['client'].put_object(Bucket=conn['bucket'], Key=key, Body=contents, Metadata=meta)
    return {'key': key, 'version_id' : k['VersionId']}
def put_object ( conn , key , contents , meta = None ) : if meta is None : k = conn [ 'client' ] . put_object ( Bucket = conn [ 'bucket' ] , Key = key , Body = contents ) else : k = conn [ 'client' ] . put_object ( Bucket = conn [ 'bucket' ] , Key = key , Body = contents , Metadata = meta ) return { 'key' : key , 'version_id' : k [ 'VersionId' ] }
Creates an object or object revision on s3
Creates an object or object revision on s3
""" Creates an object or object revision on s3 """
conn
key
contents
meta