def continue_request(self, data, request):
        """ implements the signature expected by xmlrpc_handler.collector """
        path, params, query, fragment = request.split_uri()

        try:
            pt_obj = self.get_pagetemplate(request.script_filename, query, data)
            response = self.render_pagetemplate(request, pt_obj)
        except self.pt_exceptions, ex:
            print '%r' % ex, ex
            response = '<exception>%s</exception>' % (ex, )

        request['Content-Type'] = self.content_type
        request['Content-Length'] = len(response)
        request.push(response)
        request.done()
        return
 implements the signature expected by xmlrpc_handler.collector 
recipes/Python/157501_Serve_PageTemplates_with_Medusa/recipe-157501.py