def post_process(self, post_list, req, resp, params):
<EOL>for ext in post_list:<EOL><INDENT>if inspect.isgenerator(ext):<EOL><INDENT>try:<EOL><INDENT>result = ext.send(resp)<EOL><DEDENT>except StopIteration:<EOL><INDENT>result = None<EOL><DEDENT>if result:<EOL><INDENT>resp = self.wrap(req, result)<EOL><DEDENT><DEDENT>else:<EOL><INDENT>result = ext(req, resp, **params)<EOL>if result:<EOL><INDENT>resp = self.wrap(req, result)<EOL><DEDENT><DEDENT><DEDENT>return resp<EOL>
Post-process the extensions for the action.  If any
post-processing extension (specified by `post_list`, which
should be generated by the pre_process() method) yields a
value which tests as True, the response being considered by
post-processing extensions is updated to be that value.
Returns the final response.