extend api to create an object by uploading the hashmap instead of actual data
authorSofia Papagiannaki <papagian@gmail.com>
Fri, 24 Jun 2011 16:02:04 +0000 (19:02 +0300)
committerSofia Papagiannaki <papagian@gmail.com>
Fri, 24 Jun 2011 16:02:04 +0000 (19:02 +0300)
commit7698544370c9bd0e4fb4092de9090b363c1b9eae
treec94dd118ef56bdadfb597dd6ce5ae962a43b615f
parentaa4fac11776f0614eafbd091651049b37fa59cf1
extend api to create an object by uploading the hashmap instead of actual data

- enable format parameter in PUT requests on objects
- when format is json the api instead of actual data expects a json formatted dictionary (similar to one returned by extended GET responses) containing information about the block identities
- backend update_object_hashmap() now checks for the block existence before performing the update
- incase of missing data Conflict 409 is returned containing the list of the missing block identites
pithos/api/functions.py
pithos/backends/simple.py