def _get_account_and_container(self, env):
        """
        Returns just the account and container for the request, if it's an
        object request and one of the configured methods; otherwise, None is
        returned.

        :param env: The WSGI environment for the request.
        :returns: (Account str, container str) or (None, None).
        """
        if env['REQUEST_METHOD'] in self.conf['methods']:
            try:
                ver, acc, cont, obj = split_path(env['PATH_INFO'], 4, 4, True)
            except __HOLE__:
                return (None, None)
            if ver == 'v1' and obj.strip('/'):
                return (acc, cont)
        return (None, None)
dataset/ETHPy150Open openstack/swift/swift/common/middleware/tempurl.py/TempURL._get_account_and_container