Re: [Openstack] Accessing object data and metadata in Swift middleware

2013-04-22 Thread David Goetz
There are examples in swift.common.middleware of doing this. If you want to try changing the metadata on the way out you can look at: https://github.com/openstack/swift/blob/master/swift/common/middleware/staticweb.py#L367-L384 it makes use of the WSGIContext class which allows you to make a

[Openstack] Accessing object data and metadata in Swift middleware

2013-04-21 Thread Itamar O
Hello list, I am new to OpenStack development, and trying to implement a simple Swift middleware. I was able to successfully manipulate a PUT request for an object, processing the data that was uploaded by the request and storing some information in the object metadata. But now I am struggling