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:
@@ -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())
|
||||
|
||||
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user