original_docstring: 
          Returns a list of DirEntry with entries that have an attribute with the given value.
          
docstring: Returns a list of DirEntry with entries that have an attribute with the given value.
docstring_tokens: Returns a list of DirEntry with entries that have an attribute with the given value .
code: def find_by_value(self, subtree='/', attribute=None, value=None, **kwargs):
          """
          Returns a list of DirEntry with entries that have an attribute with the given value.
          """
          if attribute is None:
              raise BadRequest("Illegal arguments")
          if subtree is None:
              raise BadRequest("Illegal arguments")
          start_key = [self.orgname, attribute, value, subtree]
          end_key = [self.orgname, attribute, value, subtree + "ZZZZZZ"]
          res = self.dir_store.find_by_view('directory', 'by_attribute',
                          start_key=start_key, end_key=end_key, id_only=True, convert_doc=True, **kwargs)
  
          match = [value for docid, indexkey, value in res]
          return match
code_tokens: def find_by_value ( self , subtree = '/' , attribute = None , value = None , ** kwargs ) : if attribute is None : raise BadRequest ( "Illegal arguments" ) if subtree is None : raise BadRequest ( "Illegal arguments" ) start_key = [ self . orgname , attribute , value , subtree ] end_key = [ self . orgname , attribute , value , subtree + "ZZZZZZ" ] res = self . dir_store . find_by_view ( 'directory' , 'by_attribute' , start_key = start_key , end_key = end_key , id_only = True , convert_doc = True , ** kwargs ) match = [ value for docid , indexkey , value in res ] return match
short_docstring: Returns a list of DirEntry with entries that have an attribute with the given value.
short_docstring_tokens: Returns a list of DirEntry with entries that have an attribute with the given value .
comment: """
          Returns a list of DirEntry with entries that have an attribute with the given value.
          """