#NEWLINE# def update( self , id , data ) : #NEWLINE# #INDENT# 'Modify a resource.' #NEWLINE# updated = objects . registry . Assembly . update_and_save ( self . context , id , data ) #NEWLINE# return updated