@public
def POST(self, req):
    'HTTP POST request handler.'
    length_limit = self.get_name_length_limit()
    if (len(self.account_name) > length_limit):
        resp = HTTPBadRequest(request=req)
        resp.body = (b'Account name length of %d longer than %d' % (len(self.account_name), length_limit))
        return resp
    error_response = check_metadata(req, 'account')
    if error_response:
        return error_response
    (account_partition, accounts) = self.app.account_ring.get_nodes(self.account_name)
    headers = self.generate_request_headers(req, transfer=True)
    clear_info_cache(self.app, req.environ, self.account_name)
    resp = self.make_requests(req, self.app.account_ring, account_partition, 'POST', req.swift_entity_path, ([headers] * len(accounts)))
    if ((resp.status_int == HTTP_NOT_FOUND) and self.app.account_autocreate):
        self.autocreate_account(req, self.account_name)
        resp = self.make_requests(req, self.app.account_ring, account_partition, 'POST', req.swift_entity_path, ([headers] * len(accounts)))
    self.add_acls_from_sys_metadata(resp)
    return resp
HTTP POST request handler.
@public
def POST(self, req):
    
    length_limit = self.get_name_length_limit()
    if (len(self.account_name) > length_limit):
        resp = HTTPBadRequest(request=req)
        resp.body = (b'Account name length of %d longer than %d' % (len(self.account_name), length_limit))
        return resp
    error_response = check_metadata(req, 'account')
    if error_response:
        return error_response
    (account_partition, accounts) = self.app.account_ring.get_nodes(self.account_name)
    headers = self.generate_request_headers(req, transfer=True)
    clear_info_cache(self.app, req.environ, self.account_name)
    resp = self.make_requests(req, self.app.account_ring, account_partition, 'POST', req.swift_entity_path, ([headers] * len(accounts)))
    if ((resp.status_int == HTTP_NOT_FOUND) and self.app.account_autocreate):
        self.autocreate_account(req, self.account_name)
        resp = self.make_requests(req, self.app.account_ring, account_partition, 'POST', req.swift_entity_path, ([headers] * len(accounts)))
    self.add_acls_from_sys_metadata(resp)
    return resp