#NEWLINE# def with_metamorphosis_factory( self , metamorphosis_factory = None ) : #NEWLINE# #INDENT# '\n        Configure metamorphosis factory to use\n        ' #NEWLINE# if metamorphosis_factory : #NEWLINE# #INDENT# self . factories . append ( metamorphosis_factory ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# self . use_real_metamorphosis_factory = True #NEWLINE# #UNINDENT# return metamorphosis_factory