add single input password widget
authorFlorent <florent@secondweb.fr>
Mon, 25 May 2009 22:14:58 +0200
changeset 1934 be86bb31c4c2
parent 1912 2b9432262240
child 1935 a54a3b665361
add single input password widget
web/formwidgets.py
--- a/web/formwidgets.py	Mon May 25 12:21:06 2009 +0200
+++ b/web/formwidgets.py	Mon May 25 22:14:58 2009 +0200
@@ -109,6 +109,11 @@
         return u'\n'.join(inputs)
 
 
+class PasswordSingleInput(Input):
+    """<input type='password'> without a confirmation field"""
+    type = 'password'
+
+
 class FileInput(Input):
     """<input type='file'>"""
     type = 'file'