Revision 4d366a03 snf-pithos-app/pithos/api/functions.py

b/snf-pithos-app/pithos/api/functions.py
176 176
            # The cloudfiles python bindings expect 200 if json/xml.
177 177
            response.status_code = 204
178 178
            return response
179
        if 'translate' in request.GET:
180
            accounts = [retrieve_username(x) for x in accounts]
181 179
        response.status_code = 200
180
        put_account_translation_headers(response, accounts)
182 181
        response.content = '\n'.join(accounts) + '\n'
183 182
        return response
184 183

  
......
194 193
        except NotAllowedError:
195 194
            raise Forbidden('Not allowed')
196 195
        else:
197
            if 'translate' in request.GET:
198
                meta['name'] = retrieve_username(x)
196
            meta['account_presentation'] = retrieve_username(x)
199 197
            rename_meta_key(meta, 'modified', 'last_modified')
200 198
            rename_meta_key(
201 199
                meta, 'until_timestamp', 'x_account_until_timestamp')

Also available in: Unified diff