# HG changeset patch # User sylvain.thenault@logilab.fr # Date 1239291200 -7200 # Node ID c050f9f8672e63f7ce71ebb43d5e0074534d593a # Parent ed2dac034fee3b0480a2de40319ca97867add32d password input may be used with non eidparam fields... diff -r ed2dac034fee -r c050f9f8672e web/formwidgets.py --- a/web/formwidgets.py Thu Apr 09 17:32:54 2009 +0200 +++ b/web/formwidgets.py Thu Apr 09 17:33:20 2009 +0200 @@ -72,7 +72,10 @@ name, values, attrs = self._render_attrs(form, field) assert len(values) == 1 id = attrs.pop('id') - confirmname = '%s-confirm:%s' % tuple(name.rsplit(':', 1)) + try: + confirmname = '%s-confirm:%s' % tuple(name.rsplit(':', 1)) + except ValueError: + confirmname = '%s-confirm' % name inputs = [tags.input(name=name, value=values[0], type=self.type, id=id, **attrs), '
', tags.input(name=confirmname, value=values[0], type=self.type, **attrs),