alfonsodg / demo-web2py

Apache License 2.0
0 stars 0 forks source link

SQLFORM.factory bug for field type = password #185

Closed alfonsodg closed 10 years ago

alfonsodg commented 10 years ago

From ionelant...@gmail.com on February 07, 2011 09:46:32

What steps will reproduce the problem? 1. In the controller I have a custom form that contains a password:

form = SQLFORM.factory(Field('afield', 'password')) form.vars.afield = 'some initial password'

  1. In the view

{{=form.custom.begin}} {{=form.custom.widget.afield}} {{=form.custom.submit}} {{=form.custom.end}} What is the expected output? What do you see instead? At page load:

Original issue: http://code.google.com/p/web2py/issues/detail?id=187

alfonsodg commented 10 years ago

From massimo....@gmail.com on February 08, 2011 07:32:53

Try this instead:

form = SQLFORM.factory(Field('afield', 'password',default="some initial password"))

Status: WontFix