web/formwidgets.py
changeset 1934 be86bb31c4c2
parent 1875 7bcb02377516
child 1966 87ce7d336393
equal deleted inserted replaced
1912:2b9432262240 1934:be86bb31c4c2
   105                   '<br/>',
   105                   '<br/>',
   106                   tags.input(name=confirmname, value=values[0], type=self.type, **attrs),
   106                   tags.input(name=confirmname, value=values[0], type=self.type, **attrs),
   107                   '&nbsp;', tags.span(form.req._('confirm password'),
   107                   '&nbsp;', tags.span(form.req._('confirm password'),
   108                                       **{'class': 'emphasis'})]
   108                                       **{'class': 'emphasis'})]
   109         return u'\n'.join(inputs)
   109         return u'\n'.join(inputs)
       
   110 
       
   111 
       
   112 class PasswordSingleInput(Input):
       
   113     """<input type='password'> without a confirmation field"""
       
   114     type = 'password'
   110 
   115 
   111 
   116 
   112 class FileInput(Input):
   117 class FileInput(Input):
   113     """<input type='file'>"""
   118     """<input type='file'>"""
   114     type = 'file'
   119     type = 'file'