#NEWLINE# def register( self , stacked , obj ) : #NEWLINE# #INDENT# 'Register an object with a StackedObjectProxy' #NEWLINE# myreglist = myreglist . reglist [ ( - 1 ) ] #NEWLINE# stacked_id = id ( stacked ) #NEWLINE# if ( stacked_id in myreglist ) : #NEWLINE# #INDENT# stacked . _pop_object ( myreglist [ stacked_id ] [ 1 ] ) #NEWLINE# del myreglist [ stacked_id ] #NEWLINE# #UNINDENT# stacked . _push_object ( obj ) #NEWLINE# myreglist [ stacked_id ] = ( stacked , obj )