def exposenew(format="default",*args,**kwargs): def _expose(func): func.exposed = True print cherrypy.request.path return func return _expose