#NEWLINE# def replace_references( self , node ) : #NEWLINE# #INDENT# '\n        Replacing the I{multiref} references with the contents of the\n        referenced nodes and remove the I{href} attribute.  Warning:  since\n        the I{ref} is not cloned,\n        @param node: A node to update.\n        @type node: L{Element}\n        ' #NEWLINE# href = node . getAttribute ( 'href' ) #NEWLINE# if ( href is None ) : #NEWLINE# #INDENT# return #NEWLINE# #UNINDENT# id = href . getValue ( ) #NEWLINE# ref = self . catalog . get ( id ) #NEWLINE# if ( ref is None ) : #NEWLINE# #INDENT# log . error ( 'soap multiref: %s, not-resolved' , id ) #NEWLINE# return #NEWLINE# #UNINDENT# node . append ( ref . children ) #NEWLINE# node . setText ( ref . getText ( ) ) #NEWLINE# for a in ref . attributes : #NEWLINE# #INDENT# if ( a . name != 'id' ) : #NEWLINE# #INDENT# node . append ( a ) #NEWLINE# #UNINDENT# #UNINDENT# node . remove ( href )