#NEWLINE# def _write_acknowledgement( self , root = True ) : #NEWLINE# #INDENT# ' Generate csw:Acknowledgement ' #NEWLINE# node = etree . Element ( util . nspath_eval ( 'csw:Acknowledgement' , self . parent . context . namespaces ) , nsmap = self . parent . context . namespaces , timeStamp = util . get_today_and_now ( ) ) #NEWLINE# if node1 : #NEWLINE# #INDENT# node . attrib [ util . nspath_eval ( 'xsi:schemaLocation' , self . parent . context . namespaces ) ] = ( '%s %s/csw/2.0.2/CSW-discovery.xsd' % ( self . parent . context . namespaces [ 'csw' ] , self . parent . config . get ( 'server' , 'ogc_schemas_base' ) ) ) #NEWLINE# #UNINDENT# node1 = etree . SubElement ( node , util . nspath_eval ( 'csw:EchoedRequest' , self . parent . context . namespaces ) ) #NEWLINE# if ( self . parent . requesttype == 'POST' ) : #NEWLINE# #INDENT# node1 . append ( etree . fromstring ( self . parent . request , self . parent . context . parser ) ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# node2 = etree . SubElement ( node1 , util . nspath_eval ( 'ows:Get' , self . parent . context . namespaces ) ) #NEWLINE# node2 . text = self . parent . request #NEWLINE# #UNINDENT# if self . parent . async : #NEWLINE# #INDENT# etree . SubElement ( node , util . nspath_eval ( 'csw:RequestId' , self . parent . context . namespaces ) ) . text = self . kvp [ 'requestid' ] #NEWLINE# #UNINDENT# return node