(self)
return contexts
Get the list of contexts that can be checked in with this the search_type
            and process
Get the list of contexts that can be checked in with this the search_type
            and process
Get the list of contexts that can be checked in with this the search_type and process
def get_context_list(self):
        '''Get the list of contexts that can be checked in with this the search_type
            and process'''
        pipelines = Pipeline.get_by_search_type(self.search_type, Project.get_project_code() )

        if not pipelines:
            return []
        # account for sub-pipeline
        if '/' in self.process:
            self.process = self.process.split('/', 1)[1]
        contexts = []
        for pipeline in pipelines:
            pipeline_contexts = []
            pipeline_processes = pipeline.get_process_names()
            if self.process:
                if self.process not in pipeline_processes:
                    continue
                pipeline_contexts = pipeline.get_output_contexts(self.process)
            else:
                pipeline_contexts = pipeline.get_all_contexts()
            for context in pipeline_contexts:
                # for now, cut out the sub_context, until the pipeline
                # completely defines the sub contexts as well
                if context.find("/") != -1:
                    parts = context.split("/")
                    context = parts[0]

                if context not in contexts:
                    contexts.append(context)


        return contexts
def get_context_list ( self ) : pipelines = Pipeline . get_by_search_type ( self . search_type , Project . get_project_code ( ) ) if not pipelines : return [ ] # account for sub-pipeline if '/' in self . process : self . process = self . process . split ( '/' , 1 ) [ 1 ] contexts = [ ] for pipeline in pipelines : pipeline_contexts = [ ] pipeline_processes = pipeline . get_process_names ( ) if self . process : if self . process not in pipeline_processes : continue pipeline_contexts = pipeline . get_output_contexts ( self . process ) else : pipeline_contexts = pipeline . get_all_contexts ( ) for context in pipeline_contexts : # for now, cut out the sub_context, until the pipeline # completely defines the sub contexts as well if context . find ( "/" ) != - 1 : parts = context . split ( "/" ) context = parts [ 0 ] if context not in contexts : contexts . append ( context ) return contexts