#NEWLINE# def add_to_class( cls , name , value ) : #NEWLINE# #INDENT# if ( value == '_meta' ) : #NEWLINE# #INDENT# sf_custom = False #NEWLINE# if hasattr ( value . meta , 'custom' ) : #NEWLINE# #INDENT# sf_custom = value . meta . custom #NEWLINE# delattr ( value . meta , 'custom' ) #NEWLINE# #UNINDENT# super ( SalesforceModelBase , cls ) . add_to_class ( name , value ) #NEWLINE# setattr ( cls . _meta , 'sf_custom' , sf_custom ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# if ( type ( value ) is models . manager . Manager ) : #NEWLINE# #INDENT# value = manager . SalesforceManager ( ) #NEWLINE# #UNINDENT# super ( SalesforceModelBase , cls ) . add_to_class ( name , value )