Allow to pass metadata into distribution.add_object() #571

Open
vsergeyev opened this Issue Feb 10, 2012 · 0 comments

Projects

None yet

1 participant

@vsergeyev

It may look like this

def add_object(self, name, content, headers=None, replace=True, metadata={}):
    ...
    object = bucket.new_key(name)
    if metadata:
        for name, val in metadata.iteritems():
            object.set_metadata(name,val)
   ...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment