original_docstring: 
          Returns a list of DirEntry for each directory entry that matches the given key name.
          If a parent is provided, only checks in this parent and all subtree.
          These entries are in the same org's directory but have different parents.
          
docstring: Returns a list of DirEntry for each directory entry that matches the given key name.
  If a parent is provided, only checks in this parent and all subtree.
  These entries are in the same org's directory but have different parents.
docstring_tokens: Returns a list of DirEntry for each directory entry that matches the given key name . If a parent is provided only checks in this parent and all subtree . These entries are in the same org ' s directory but have different parents .
code: def find_by_key(self, key=None, parent='/', **kwargs):
          """
          Returns a list of DirEntry for each directory entry that matches the given key name.
          If a parent is provided, only checks in this parent and all subtree.
          These entries are in the same org's directory but have different parents.
          """
          if key is None:
              raise BadRequest("Illegal arguments")
          if parent is None:
              raise BadRequest("Illegal arguments")
          start_key = [self.orgname, key, parent]
          end_key = [self.orgname, key, parent + "ZZZZZZ"]
          res = self.dir_store.find_by_view('directory', 'by_key',
              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_key ( self , key = None , parent = '/' , ** kwargs ) : if key is None : raise BadRequest ( "Illegal arguments" ) if parent is None : raise BadRequest ( "Illegal arguments" ) start_key = [ self . orgname , key , parent ] end_key = [ self . orgname , key , parent + "ZZZZZZ" ] res = self . dir_store . find_by_view ( 'directory' , 'by_key' , 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 for each directory entry that matches the given key name.
short_docstring_tokens: Returns a list of DirEntry for each directory entry that matches the given key name .
comment: """
          Returns a list of DirEntry for each directory entry that matches the given key name.
          If a parent is provided, only checks in this parent and all subtree.
          These entries are in the same org's directory but have different parents.
          """