# HG changeset patch # User Jeff Hammel # Date 1321557603 28800 # Node ID 74b8a879341401300dd4f68ecbe6274ffd16c93f # Parent 9f4369b769d0021cfe61692d46ca3825aff90e9f whitespace cleanup diff -r 9f4369b769d0 -r 74b8a8793414 bitsyauth/__init__.py --- a/bitsyauth/__init__.py Thu Nov 17 11:17:17 2011 -0800 +++ b/bitsyauth/__init__.py Thu Nov 17 11:20:03 2011 -0800 @@ -62,7 +62,7 @@ if not CAPTCHA: self.captcha = False - + ### WSGI/HTTP layer def __call__(self, environ, start_response): @@ -144,7 +144,7 @@ retval.update(dict([(('/join/%s.png' % key), 'image_captcha') for key in self.keys])) return retval - + def get_response(self, text, content_type='text/html'): res = Response(content_type=content_type, body=text) res.content_length = len(res.body) @@ -163,7 +163,7 @@ function = getattr(self, handler) if self.request.method == 'GET': - # XXX could/should do this with decorators + # XXX could/should do this with decorators return self.get_response(function(wrap=True), content_type=self.content_type.get(handler,'text/html')) if self.request.method == 'POST': @@ -184,7 +184,7 @@ key = self.request.path_info.split('/join/')[-1] key = int(key.split('.png')[0]) return skimpyAPI.Png(self.keys[key], scale=3.0).data() - + ### forms and their display methods ### login @@ -205,7 +205,7 @@ form = self.login_form(action=action, referer=referer) join = self.urls.get('join') retval = form(errors) - if join: + if join: retval += '
\n' + markup.a('join', href="%s" % join) retval = markup.div(retval) if wrap: