def read(self, entity=None, attrs=None, ignore=None, params=None):
        """Fetch an attribute missing from the server's response.

        For more information, see `Bugzilla #1237257
        <https://bugzilla.redhat.com/show_bug.cgi?id=1237257>`_.

        Add content_view_component to the response if needed, as
        :meth:`nailgun.entity_mixins.EntityReadMixin.read` can't initialize
        content_view_component.
        """
        if attrs is None:
            attrs = self.read_json()
        if _get_version(self._server_config) < Version('6.1'):
            org = _get_org(self._server_config, attrs['organization']['label'])
            attrs['organization'] = org.get_values()

        if ignore is None:
            ignore = set()
        ignore.add('content_view_component')
        result = super(ContentView, self).read(entity, attrs, ignore, params)
        if 'content_view_components' in attrs and attrs['content_view_components']:
            result.content_view_component = [
                ContentViewComponent(
                    self._server_config,
                    composite_content_view=result.id,
                    id=content_view_component['id'],
                )
                for content_view_component in attrs['content_view_components']
            ]
        return result
def read ( self , entity = None , attrs = None , ignore = None , params = None ) : if attrs is None : attrs = self . read_json ( ) if _get_version ( self . _server_config ) < Version ( '6.1' ) : org = _get_org ( self . _server_config , attrs [ 'organization' ] [ 'label' ] ) attrs [ 'organization' ] = org . get_values ( ) if ignore is None : ignore = set ( ) ignore . add ( 'content_view_component' ) result = super ( ContentView , self ) . read ( entity , attrs , ignore , params ) if 'content_view_components' in attrs and attrs [ 'content_view_components' ] : result . content_view_component = [ ContentViewComponent ( self . _server_config , composite_content_view = result . id , id = content_view_component [ 'id' ] , ) for content_view_component in attrs [ 'content_view_components' ] ] return result
Fetch an attribute missing from the server's response.

        For more information, see `Bugzilla #1237257
        <https://bugzilla.redhat.com/show_bug.cgi?id=1237257>`_.

        Add content_view_component to the response if needed, as
        :meth:`nailgun.entity_mixins.EntityReadMixin.read` can't initialize
        content_view_component.