import random
from Mailman import Utils
-def displayhtml(mlist, captchas):
+def display(mlist, captchas):
"""Returns a CAPTCHA question, the HTML for the answer box, and
the data to be put into the CSRF token"""
idx = random.randrange(len(captchas))
# for our hash so it doesn't matter.
remote = remote.rsplit(':', 1)[0]
# get CAPTCHA data
- (captcha_question, captcha_box, captcha_idx) = Captcha.displayhtml(mlist, mm_cfg.CAPTCHAS)
+ (captcha_question, captcha_box, captcha_idx) = Captcha.display(mlist, mm_cfg.CAPTCHAS)
replacements['<mm-captcha-question>'] = captcha_question
replacements['<mm-captcha-box>'] = captcha_box
# fill form