@memoize(maxsize=None)
def find(name, namespace=u'celery'):
 namespace = namespace.lower()
 try:
  return searchresult(namespace, name.lower(), NAMESPACES[namespace][name.lower()])
 except KeyError:
  for (ns, opts) in items(NAMESPACES):
   if (ns.lower() == name.lower()):
    return searchresult(None, ns, opts)
   elif isinstance(opts, dict):
    try:
     return searchresult(ns, name.lower(), opts[name.lower()])
    except KeyError:
     pass
 return searchresult(None, name.lower(), DEFAULTS[name.lower()])

@ memoize ( maxsize = None ) def find ( name , namespace = u'celery' ) : namespace = namespace . lower ( ) try : return searchresult ( namespace , name . lower ( ) , NAMESPACES [ namespace ] [ name . lower ( ) ] ) except KeyError : for ( ns , opts ) in items ( NAMESPACES ) : if ( ns . lower ( ) == name . lower ( ) ) : return searchresult ( None , ns , opts ) elif isinstance ( opts , dict ) : try : return searchresult ( ns , name . lower ( ) , opts [ name . lower ( ) ] ) except KeyError : pass return searchresult ( None , name . lower ( ) , DEFAULTS [ name . lower ( ) ] )
return a dict of the files located with the given path and environment .