#NEWLINE# def __set__( self , obj , values ) : #NEWLINE# #INDENT# if ( obj . owning_class is None ) : #NEWLINE# #INDENT# self . owning_class = type ( obj ) #NEWLINE# #UNINDENT# if self . scalar : #NEWLINE# #INDENT# creator = ( ( self . creator and self . creator ) or self . target_class ) #NEWLINE# target = getattr ( obj , self . target_collection ) #NEWLINE# if ( target is None ) : #NEWLINE# #INDENT# setattr ( obj , self . target_collection , creator ( values ) ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# self . _scalar_set ( target , values ) #NEWLINE# #UNINDENT# #UNINDENT# else : #NEWLINE# #INDENT# proxy = self . __get__ ( obj , None ) #NEWLINE# if ( proxy is not values ) : #NEWLINE# #INDENT# proxy . clear ( ) #NEWLINE# self . _set ( proxy , values )