#NEWLINE# def get_attributes( self ) : #NEWLINE# #INDENT# if ( not hasattr ( self , '_attributes' ) ) : #NEWLINE# #INDENT# attrs = self . attribute_set . all ( ) #NEWLINE# for ancestor in self . get_all_ancestors ( ) : #NEWLINE# #INDENT# attrs = ( attrs | ancestor . get_attributes ( ) ) #NEWLINE# #UNINDENT# self . _attributes = attrs #NEWLINE# #UNINDENT# return self . _attributes