#NEWLINE# def execute( self , identifier , wps_request , uuid ) : #NEWLINE# #INDENT# 'Parse and perform Execute WPS request call\n\n        :param identifier: process identifier string\n        :param wps_request: pywps.WPSRequest structure with parsed inputs, still in memory\n        :param uuid: string identifier of the request\n        ' #NEWLINE# response = None #NEWLINE# try : #NEWLINE# #INDENT# process = self . processes [ identifier ] #NEWLINE# workdir = config . get_config_value ( 'server' , 'workdir' ) #NEWLINE# tempdir = tempfile . mkdtemp ( prefix = 'pywps_process_' , dir = workdir ) #NEWLINE# process . set_workdir ( identifier ) #NEWLINE# #UNINDENT# except KeyError : #NEWLINE# #INDENT# raise InvalidParameterValue ( ( "Unknown process '%r'" % identifier ) , 'Identifier' ) #NEWLINE# #UNINDENT# olddir = os . path . abspath ( os . curdir ) #NEWLINE# try : #NEWLINE# #INDENT# os . chdir ( process . workdir ) #NEWLINE# response = self . _parse_and_execute ( process , wps_request , uuid ) #NEWLINE# #UNINDENT# finally : #NEWLINE# #INDENT# os . chdir ( olddir ) #NEWLINE# shutil . rmtree ( process . workdir ) #NEWLINE# #UNINDENT# return response