def page_response(self, title='', body=''):
        f = StringIO()
        f.write('<!DOCTYPE html>\n')
        f.write('<html>\n')
        f.write('<head><title>{}</title><head>\n'.format(title))
        f.write('<body>\n<h2>{}</h2>\n'.format(title))
        f.write('<div class="content">{}</div>\n'.format(body))
        f.write('</body>\n</html>\n')
        length = f.tell()
        f.seek(0)
        self.send_response(200)
        encoding = sys.getfilesystemencoding()
        self.send_header("Content-type", "text/html; charset=%s" % encoding)
        self.send_header("Content-Length", str(length))
        self.end_headers()
        self.copyfile(f, self.wfile)
        f.close()
Restore a previously deleted instance.
dataset/ETHPy150Open freakboy3742/pyxero/examples/partner_oauth_flow/runserver.py/PartnerCredentialsHandler.page_response--crossover with--dataset/ETHPy150Open BU-NU-CLOUD-SP16/Trusted-Platform-Module-nova/nova/api/openstack/compute/deferred_delete.py/DeferredDeleteController._restore