Mercurial > p > roundup > code
diff roundup/cgi/templating.py @ 1438:13c42b803101
Better handling of the form variable labels.
It's done in one step rather than the split step of last week. This
means that "msg-1@link@files" will work now.
I had to change the password confirmation special var from "name:confirm"
to ":confirm:name" so it conformed with the pattern set by ":add:" etc.
| author | Richard Jones <richard@users.sourceforge.net> |
|---|---|
| date | Mon, 17 Feb 2003 06:44:01 +0000 |
| parents | 2f6647cf5345 |
| children | b4c0819c7a57 |
line wrap: on
line diff
--- a/roundup/cgi/templating.py Mon Feb 17 01:04:31 2003 +0000 +++ b/roundup/cgi/templating.py Mon Feb 17 06:44:01 2003 +0000 @@ -876,9 +876,9 @@ def confirm(self, size = 30): ''' Render a second form edit field for the property, used for confirmation that the user typed the password correctly. Generates - a field with name "name:confirm". + a field with name ":confirm:name". ''' - return '<input type="password" name="%s:confirm" size="%s">'%( + return '<input type="password" name=":confirm:name" size="%s">'%( self._name, size) class NumberHTMLProperty(HTMLProperty):
