#NEWLINE# @ classmethod #NEWLINE# def associate_with( cls , sqltype ) : #NEWLINE# #INDENT# 'Associate this wrapper with all future mapped columns\n        of the given type.\n\n        This is a convenience method that calls\n        ``associate_with_attribute`` automatically.\n\n        .. warning::\n\n           The listeners established by this method are *global*\n           to all mappers, and are *not* garbage collected.   Only use\n           :meth:`.associate_with` for types that are permanent to an\n           application, not with ad-hoc types else this will cause unbounded\n           growth in memory usage.\n\n        ' #NEWLINE# def listen_for_type( mapper , class_ ) : #NEWLINE# #INDENT# for prop in mapper . column_attrs : #NEWLINE# #INDENT# if isinstance ( prop . columns [ 0 ] . type , sqltype ) : #NEWLINE# #INDENT# cls . associate_with_attribute ( getattr ( class_ , prop . key ) ) #NEWLINE# #UNINDENT# #UNINDENT# #UNINDENT# event . listen ( mapper , 'mapper_configured' , listen_for_type )