#NEWLINE# def register_actor( a ) : #NEWLINE# #INDENT# if ( not settings . SITE . is_installed ( a . app_label ) ) : #NEWLINE# #INDENT# return #NEWLINE# #UNINDENT# old = actors_dict . define ( a . app_label , a . __name__ , a ) #NEWLINE# if ( old is not None ) : #NEWLINE# #INDENT# actors_list . remove ( old ) #NEWLINE# #UNINDENT# actors_list . append ( a ) #NEWLINE# return old