

def _get_container_info(self, env):
    '\n        Retrieves x-container-meta-web-index, x-container-meta-web-error,\n        x-container-meta-web-listings, x-container-meta-web-listings-css,\n        and x-container-meta-web-directory-type from memcache or from the\n        cluster and stores the result in memcache and in self._index,\n        self._error, self._listings, self._listings_css and self._dir_type.\n\n        :param env: The WSGI environment dict.\n        :return container_info: The container_info dict.\n        '
    self._index = self._error = self._listings = self._listings_css = self._dir_type = None
    container_info = get_container_info(env, self.app, swift_source='SW')
    if is_success(container_info['status']):
        meta = container_info.get('meta', {
            
        })
        self._index = meta.get('web-index', '').strip()
        self._error = meta.get('web-error', '').strip()
        self._listings = meta.get('web-listings', '').strip()
        self._listings_label = meta.get('web-listings-label', '').strip()
        self._listings_css = meta.get('web-listings-css', '').strip()
        self._dir_type = meta.get('web-directory-type', '').strip()
    return container_info

dataset/ETHPy150Open openstack/swift/swift/common/middleware/staticweb.py _StaticWebContext._get_container_info/original