#NEWLINE# @ exception . wrap_wsme_pecan_controller_exception #NEWLINE# @ wsme_pecan . wsexpose ( infrastructure . InfrastructureStack , body = infrastructure . InfrastructureStack ) #NEWLINE# def put( self , data ) : #NEWLINE# #INDENT# 'Modify this stack.' #NEWLINE# handler = infrastructure_handler . InfrastructureStackHandler ( pecan . request . security_context ) #NEWLINE# res = handler . update ( self . _id , data . as_dict ( objects . registry . InfrastructureStack ) ) #NEWLINE# return infrastructure . InfrastructureStack . from_db_model ( data , pecan . request . host_url )