1
0
mirror of https://github.com/certbot/certbot.git synced 2026-01-26 07:41:33 +03:00

say what names this request applied to

This commit is contained in:
Seth Schoen
2012-11-18 19:49:12 -08:00
parent 052644c2e4
commit b66e24ce2a
2 changed files with 7 additions and 2 deletions

View File

@@ -36,8 +36,10 @@ class payment(object):
if r.hget(session, "state") != "payment":
return "Attempt to process payment for session not expecting it."
r.publish("payments", session)
names = r.lrange("%s:names" % session, 0, -1)
names_list = '<ul style="font-family:monospace">' + "\n".join("<li>%s</li>" % n for n in names) + '</ul>'
with open("thanks.html","r") as f:
return f.read() % session
return f.read() % (session, names)
if __name__ == "__main__":
app = web.application(urls, globals())

View File

@@ -33,7 +33,10 @@
<h2>Thanks for your payment!</h2>
<p>
You successfully processed a credit card payment of <b>17.00 simoleons</b> for the
issuance of a digital certificate.</p><p>This payment relates to session ID %s.</p>
issuance of a digital certificate.</p><p>This payment relates to session ID %s, which
requested a certificate for the following names:</p>
</p>
%s
</p>
</section>
<footer>