'Return a dict of ACL data from the account server via get_account_info.
Auth systems may define their own format, serialization, structure,
and capabilities implemented in the ACL headers and persisted in the
sysmeta data.  However, auth systems are strongly encouraged to be
interoperable with Tempauth.
Account ACLs are set and retrieved via the header
X-Account-Access-Control
For header format and syntax, see:
* :func:`swift.common.middleware.acl.parse_acl()`
* :func:`swift.common.middleware.acl.format_acl()`'

def account_acls(self, req):

    info = get_account_info(req.environ, self.app, swift_source='TA')
    try:
        acls = acls_from_account_info(info)
    except ValueError as e1:
        self.logger.warning(('Invalid    ACL    stored    in    metadata:    %r' % e1))
        return None
    except NotImplementedError as e2:
        self.logger.warning(('ACL    version    exceeds    middleware    version:    %r' % e2))
        return None
    return acls
