#NEWLINE# def MakeMetadataDict( self , follower ) : #NEWLINE# #INDENT# 'Constructs a dictionary containing viewpoint metadata attributes, overridden by follower\n    attributes where required (as viewed by the follower himself). The format conforms to\n    VIEWPOINT_METADATA in json_schema.py.\n    ' #NEWLINE# vp_dict = self . _asdict ( ) #NEWLINE# foll_dict = follower . MakeMetadataDict ( ) #NEWLINE# vp_dict . update ( foll_dict ) #NEWLINE# if follower . IsRemoved ( ) : #NEWLINE# #INDENT# for attr_name in vp_dict . keys ( ) : #NEWLINE# #INDENT# if ( attr_name not in Viewpoint . _IF_REMOVED_ATTRIBUTES ) : #NEWLINE# #INDENT# del vp_dict [ attr_name ] #NEWLINE# #UNINDENT# #UNINDENT# #UNINDENT# return vp_dict