# HG changeset patch # User Jeff Hammel # Date 1321556800 28800 # Node ID aac4a4ea70a7248fd9a0bb3cc0c4f367178e3421 # Parent 814ed3208afab8401ee3f80a54bdc03dad602280 whitespace diff -r 814ed3208afa -r aac4a4ea70a7 bitsyauth/__init__.py --- a/bitsyauth/__init__.py Thu Nov 17 11:04:36 2011 -0800 +++ b/bitsyauth/__init__.py Thu Nov 17 11:06:40 2011 -0800 @@ -256,23 +256,22 @@ captcha_text = "Please type the word below so I know you're not a computer:" captcha_help = "(please %s if the page is unreadable)" % markup.link('/join?captcha=image', 'go here') - print >> captcha, markup.p('%s
%s' % (captcha_text, + print >> captcha, markup.p('%s
%s' % (captcha_text, markup.i(captcha_help))) # determine type of CAPTCHA captchas = ' '.join(self.request.GET.getall('captcha')) if not captchas: captchas = 'pre' - + captcha_funcs=dict(pre=self.captcha_pre, image=self.captcha_png,) captchas = [ captcha_funcs[i](word, key) for i in captchas.split() if i in captcha_funcs ] captchas = '\n'.join([markup.p(i) for i in captchas]) print >> captcha, captchas - print >> captcha, markup.p(markup.input(None, **dict(name='captcha', type='text'))) - + captcha = captcha.getvalue() form = Form(action=self.urls['join'], submit='Join', post_html=captcha) @@ -318,7 +317,7 @@ errors['CAPTCHA'] = 'Please type the funky looking word' if word != self.request.POST.get('captcha','').lower(): errors['CAPTCHA'] = 'Sorry, you typed the wrong word' - + name = self.request.POST.get('Name', '') if not name: if not errors.has_key('Name'):