#NEWLINE# def get_body( self , environ = None ) : #NEWLINE# #INDENT# 'Get the XML body.' #NEWLINE# return text_type ( ( '<?xml version="1.0" encoding="UTF-8"?>\n<!-- PyWPS %(version)s -->\n<ows:ExceptionReport xmlns:ows="http://www.opengis.net/ows/1.1" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.opengis.net/ows/1.1 http://schemas.opengis.net/ows/1.1.0/owsExceptionReport.xsd" version="1.0.0"><ows:Exception exceptionCode="%(name)s" locator="%(locator)s" >%(description)s</ows:Exception></ows:ExceptionReport>' % { #NEWLINE# #INDENT# 'version' : __version__ , #NEWLINE# 'code' : self . code , #NEWLINE# 'locator' : escape ( self . locator ) , #NEWLINE# 'name' : escape ( self . name ) , #NEWLINE# 'description' : self . get_description ( environ ) , #NEWLINE# #UNINDENT# } ) )