# HG changeset patch # User k0s # Date 1265500832 18000 # Node ID 478d13061336268893df0dcd11ec86ecf85f0921 # Parent 21ec6325ae0ebb3b69c95b46e813495b461f89ba include a text input diff -r 21ec6325ae0e -r 478d13061336 captchamiddleware/middleware.py --- a/captchamiddleware/middleware.py Sun Jan 24 23:15:57 2010 -0500 +++ b/captchamiddleware/middleware.py Sat Feb 06 19:00:32 2010 -0500 @@ -64,7 +64,7 @@ key = random.Random().randint(0, len(self.words)) word = self.words[key] captcha = skimpyAPI.Pre(word).data() - string = '
%s
' % (captcha, key) + string = '
%s
' % (captcha, key) addition = etree.fromstring(string) insertion_point = element.find('.' + self.path) insertion_point.addprevious(addition)