#NEWLINE# def __exit__( self , exc_type , exc_val , exc_tb ) : #NEWLINE# #INDENT# 'Run tool._setup() for each tool in our toolmap.' #NEWLINE# map = cherrypy . serving . request . toolmaps . get ( self . namespace ) #NEWLINE# if map : #NEWLINE# #INDENT# for ( name , settings ) in map . items ( ) : #NEWLINE# #INDENT# if settings . get ( 'on' , False ) : #NEWLINE# #INDENT# tool = getattr ( self , name ) #NEWLINE# tool . _setup ( )