Mercurial > p > roundup > code
comparison roundup/cgi/client.py @ 2041:2add75e296d2 maint-0.6
fixed rego
| author | Richard Jones <richard@users.sourceforge.net> |
|---|---|
| date | Tue, 24 Feb 2004 21:13:26 +0000 |
| parents | 6a9e4e07c7d9 |
| children | 6e708cf528e1 |
comparison
equal
deleted
inserted
replaced
| 2038:0bbe74ce51d0 | 2041:2add75e296d2 |
|---|---|
| 1 # $Id: client.py,v 1.130.2.9 2004-02-13 01:35:02 richard Exp $ | 1 # $Id: client.py,v 1.130.2.10 2004-02-24 21:13:26 richard Exp $ |
| 2 | 2 |
| 3 __doc__ = """ | 3 __doc__ = """ |
| 4 WWW request handler (also used in the stand-alone server). | 4 WWW request handler (also used in the stand-alone server). |
| 5 """ | 5 """ |
| 6 | 6 |
| 728 | 728 |
| 729 return 1 on successful login | 729 return 1 on successful login |
| 730 ''' | 730 ''' |
| 731 # parse the props from the form | 731 # parse the props from the form |
| 732 try: | 732 try: |
| 733 props = self.parsePropsFromForm()[0][('user', None)] | 733 props = self.parsePropsFromForm(create=True)[0][('user', None)] |
| 734 except (ValueError, KeyError), message: | 734 except (ValueError, KeyError), message: |
| 735 self.error_message.append(_('Error: ') + str(message)) | 735 self.error_message.append(_('Error: ') + str(message)) |
| 736 return | 736 return |
| 737 | 737 |
| 738 # make sure we're allowed to register | 738 # make sure we're allowed to register |
