parameters: (cls, search_type, project_code='')
return_statement: return pipelines
docstring: search = Search("config/pipeline")
          if search_type:
              search.add_filter("search_type", search_type)
          search.add_project_filter(project_code)
          pipelines = cls.get_by_search(search, cache_key, is_multi=True)
docstring_summary: search = Search("config/pipeline")
          if search_type:
              search.add_filter("search_type", search_type)
          search.add_project_filter(project_code)
          pipelines = cls.get_by_search(search, cache_key, is_multi=True)
docstring_tokens: search = Search ( config / pipeline ) if search_type : search . add_filter ( search_type search_type ) search . add_project_filter ( project_code ) pipelines = cls . get_by_search ( search cache_key is_multi = True )
function: def get_by_search_type(cls, search_type, project_code=''):
          # make sure this is a be search type
          assert search_type
          search_type_obj = SearchType.get(search_type)
          if not search_type_obj:
              return []
          search_type = search_type_obj.get_base_key()
  
          cache_key = "%s|%s" % (search_type, project_code)
  
  
          # commenting out until we have a full implementation of
          # project pipelines
          """
          search = Search("config/pipeline")
          if search_type:
              search.add_filter("search_type", search_type)
          search.add_project_filter(project_code)
          pipelines = cls.get_by_search(search, cache_key, is_multi=True)
          """
  
  
          search = Search("sthpw/pipeline")
          if search_type:
              search.add_filter("search_type", search_type)
          search.add_project_filter(project_code)
          pipelines = cls.get_by_search(search, cache_key, is_multi=True)
          if not pipelines:
              return []
          for pipe in pipelines:
              code = pipe.get_code()
              cls.cache_sobject('sthpw/pipeline|%s' %code, pipe)
          return pipelines
function_tokens: def get_by_search_type ( cls , search_type , project_code = '' ) : # make sure this is a be search type assert search_type search_type_obj = SearchType . get ( search_type ) if not search_type_obj : return [ ] search_type = search_type_obj . get_base_key ( ) cache_key = "%s|%s" % ( search_type , project_code ) # commenting out until we have a full implementation of # project pipelines search = Search ( "sthpw/pipeline" ) if search_type : search . add_filter ( "search_type" , search_type ) search . add_project_filter ( project_code ) pipelines = cls . get_by_search ( search , cache_key , is_multi = True ) if not pipelines : return [ ] for pipe in pipelines : code = pipe . get_code ( ) cls . cache_sobject ( 'sthpw/pipeline|%s' % code , pipe ) return pipelines