def listens_for(target, identifier, *args, **kw):
 def decorate(fn):
  listen(target, identifier, fn, *args, **kw)
  return fn
 return decorate

def listens_for ( target , identifier , * args , ** kw ) : def decorate ( fn ) : listen ( target , identifier , fn , * args , ** kw ) return fn return decorate
decorate a function as a listener for the given target + identifier .