Check for invalid usernames in positions page

This commit is contained in:
David Bartley 2007-11-27 19:24:53 -05:00
parent 7ce6543ce6
commit 4f18425f71
1 changed files with 5 additions and 0 deletions

View File

@ -57,6 +57,11 @@ class InfoPage(WizardPanel):
for (position, widget) in self.position_widgets.iteritems():
self.state['positions'][position] = \
self.parse(widget.get_edit_text())
for p in self.state['positions'][position]:
if members.get(p) == None:
self.focus_widget(widget)
set_status( "Invalid username: '%s'" % p )
return True
clear_status()
class EndPage(WizardPanel):