def _tree_namespace_handler(k, v):
 if isinstance(v, dict):
  for (script_name, app) in v.items():
   cherrypy.tree.graft(app, script_name)
   cherrypy.engine.log(('Mounted: %s on %s' % (app, (script_name or '/'))))
 else:
  cherrypy.tree.graft(v, v.script_name)
  cherrypy.engine.log(('Mounted: %s on %s' % (v, (v.script_name or '/'))))

def _tree_namespace_handler ( k , v ) : if isinstance ( v , dict ) : for ( script_name , app ) in v . items ( ) : cherrypy . tree . graft ( app , script_name ) cherrypy . engine . log ( ( 'Mounted: %s on %s' % ( app , ( script_name or '/' ) ) ) ) else : cherrypy . tree . graft ( v , v . script_name ) cherrypy . engine . log ( ( 'Mounted: %s on %s' % ( v , ( v . script_name or '/' ) ) ) )
namespace handler for the tree config namespace .