Mercurial > p > roundup > code
comparison roundup/cgi/templating.py @ 1144:db13f46cb5f9
password edit now has a confirmation field
registration error punts back to register page
| author | Richard Jones <richard@users.sourceforge.net> |
|---|---|
| date | Sun, 15 Sep 2002 22:41:15 +0000 |
| parents | 7e193bbda38e |
| children | 7e0024954954 |
comparison
equal
deleted
inserted
replaced
| 1143:c7119e74fcf8 | 1144:db13f46cb5f9 |
|---|---|
| 765 if self._value is None: | 765 if self._value is None: |
| 766 return '' | 766 return '' |
| 767 return _('*encrypted*') | 767 return _('*encrypted*') |
| 768 | 768 |
| 769 def field(self, size = 30): | 769 def field(self, size = 30): |
| 770 ''' Render a form edit field for the property | 770 ''' Render a form edit field for the property. |
| 771 ''' | 771 ''' |
| 772 return '<input type="password" name="%s" size="%s">'%(self._name, size) | 772 return '<input type="password" name="%s" size="%s">'%(self._name, size) |
| 773 | |
| 774 def confirm(self, size = 30): | |
| 775 ''' Render a second form edit field for the property, used for | |
| 776 confirmation that the user typed the password correctly. Generates | |
| 777 a field with name "name:confirm". | |
| 778 ''' | |
| 779 return '<input type="password" name="%s:confirm" size="%s">'%( | |
| 780 self._name, size) | |
| 773 | 781 |
| 774 class NumberHTMLProperty(HTMLProperty): | 782 class NumberHTMLProperty(HTMLProperty): |
| 775 def plain(self): | 783 def plain(self): |
| 776 ''' Render a "plain" representation of the property | 784 ''' Render a "plain" representation of the property |
| 777 ''' | 785 ''' |
