From e6ef4cb6dd8f41c4a42ffc92e1751dfb48b1a9eb Mon Sep 17 00:00:00 2001 From: Jeremy Stanley Date: Fri, 10 Jul 2015 12:58:00 +0000 Subject: [PATCH] Note to escape literal $ in invite2summit template Literal $ characters in the template which are not part of a substitution variable should be doubled to to avoid raising a ValueError exception. Change-Id: I14fd33571d63d50fc65e8c87fb10577e691b6c8e --- tools/invite2summit/README.rst | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/tools/invite2summit/README.rst b/tools/invite2summit/README.rst index b2b4d7be9f..e31c4fde85 100644 --- a/tools/invite2summit/README.rst +++ b/tools/invite2summit/README.rst @@ -10,6 +10,11 @@ You use it like this: - Copy settings.py.sample to settings.py - Update values in settings.py, especially *EMAIL_USER*, *EMAIL_FROM*, *EMAIL_SIGNATURE* and *EMAIL_PASSWORD* +- Note that literal ``$`` characters in the template which are not part + of a substitution variable (such as dollar amounts) should be doubled + to escape them like ``... a $$600-off discount code ...`` so as to + avoid raising *ValueError: Invalid placeholder in string: line , + col * - Run a test with ``python send.py atc_sample.csv codes_sample.csv`` Should work on stock Ubuntu.