Revision 4d366a03 snf-pithos-app/pithos/api/util.py
b/snf-pithos-app/pithos/api/util.py | ||
---|---|---|
161 | 161 |
return meta, groups |
162 | 162 |
|
163 | 163 |
|
164 |
def put_account_translation_headers(response, accounts): |
|
165 |
for x in accounts: |
|
166 |
k = smart_str('X-Account-Presentation-%s' % x, strings_only=True) |
|
167 |
v = smart_str(retrieve_username(x), strings_only=True) |
|
168 |
response[k] = v |
|
169 |
|
|
170 |
|
|
164 | 171 |
def put_account_headers(response, meta, groups, policy): |
165 | 172 |
if 'count' in meta: |
166 | 173 |
response['X-Account-Container-Count'] = meta['count'] |
Also available in: Unified diff