#NEWLINE# def edit_image( self , name , new_name = None , description = None , minimum_disk = None , minimum_ram = None , public = None , protected = None ) : #NEWLINE# #INDENT# row = self . _get_row_with_image_name ( name ) #NEWLINE# confirm_edit_images_form = self . images_table . edit_image ( row ) #NEWLINE# if ( new_name is not None ) : #NEWLINE# #INDENT# confirm_edit_images_form . name . text = new_name #NEWLINE# #UNINDENT# if ( description is not None ) : #NEWLINE# #INDENT# confirm_edit_images_form . description . text = description #NEWLINE# #UNINDENT# if ( minimum_disk is not None ) : #NEWLINE# #INDENT# confirm_edit_images_form . minimum_disk . value = minimum_disk #NEWLINE# #UNINDENT# if ( minimum_ram is not None ) : #NEWLINE# #INDENT# confirm_edit_images_form . minimum_ram . value = minimum_ram #NEWLINE# #UNINDENT# if ( public is True ) : #NEWLINE# #INDENT# confirm_edit_images_form . public . mark ( ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# if ( public is False ) : #NEWLINE# #INDENT# confirm_edit_images_form . public . unmark ( ) #NEWLINE# #UNINDENT# #UNINDENT# if ( protected is True ) : #NEWLINE# #INDENT# confirm_edit_images_form . protected . mark ( ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# if ( protected is False ) : #NEWLINE# #INDENT# confirm_edit_images_form . protected . unmark ( ) #NEWLINE# #UNINDENT# #UNINDENT# confirm_edit_images_form . submit ( )