comparison MoinMoin/action/login.py @ 949:cbbde07e00c4

whitespace-only cleanup, small style changes
author Thomas Waldmann <tw AT waldmann-edv DOT de>
date Mon, 17 Jul 2006 04:01:34 +0200
parents b270396abba9
children ecece5db5288
comparison
equal deleted inserted replaced
948:28ea5b3802b1 949:cbbde07e00c4
47 error = _('Unknown user name: {{{"%s"}}}. Please enter' 47 error = _('Unknown user name: {{{"%s"}}}. Please enter'
48 ' user name and password.') % name 48 ' user name and password.') % name
49 49
50 # Require password 50 # Require password
51 else: 51 else:
52 password = form.get('password',[None])[0] 52 password = form.get('password', [None])[0]
53 if not password: 53 if not password:
54 error = _("Missing password. Please enter user name and password.") 54 error = _("Missing password. Please enter user name and password.")
55 else: 55 else:
56 if not request.user.valid: 56 if not request.user.valid:
57 error = _("Sorry, login failed.") 57 error = _("Sorry, login failed.")
58 58
59 return self.page.send_page(request, msg=error) 59 return self.page.send_page(request, msg=error)
60 60
61 else: # show login form 61 else: # show login form
62 request.http_headers() 62 request.http_headers()
63 request.theme.send_title(_("Login"), pagename=self.pagename) 63 request.theme.send_title(_("Login"), pagename=self.pagename)
64 # Start content (important for RTL support) 64 # Start content (important for RTL support)
65 request.write(request.formatter.startContent("content")) 65 request.write(request.formatter.startContent("content"))
66 66
67 request.write(userform.getLogin(request)) 67 request.write(userform.getLogin(request))
68 68
69 request.write(request.formatter.endContent()) 69 request.write(request.formatter.endContent())
70 request.theme.send_footer(self.pagename) 70 request.theme.send_footer(self.pagename)
71 request.theme.send_closing_html() 71 request.theme.send_closing_html()
72 72