From b66e24ce2a81491040fb08d7fb41902f9e92eb47 Mon Sep 17 00:00:00 2001 From: Seth Schoen Date: Sun, 18 Nov 2012 19:49:12 -0800 Subject: [PATCH] say what names this request applied to --- server-ca/payment.py | 4 +++- server-ca/thanks.html | 5 ++++- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/server-ca/payment.py b/server-ca/payment.py index dd35cec6c..52ffa28a6 100755 --- a/server-ca/payment.py +++ b/server-ca/payment.py @@ -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 = '' with open("thanks.html","r") as f: - return f.read() % session + return f.read() % (session, names) if __name__ == "__main__": app = web.application(urls, globals()) diff --git a/server-ca/thanks.html b/server-ca/thanks.html index 5a439e6e6..8ba30e48e 100644 --- a/server-ca/thanks.html +++ b/server-ca/thanks.html @@ -33,7 +33,10 @@

Thanks for your payment!

You successfully processed a credit card payment of 17.00 simoleons for the - issuance of a digital certificate.

This payment relates to session ID %s.

+ issuance of a digital certificate.

This payment relates to session ID %s, which + requested a certificate for the following names:

+

+ %s