Some testing done, I don't know the side efects, but with this changes to  
py4web/utils/*form.py*  things work munch better (as per date/time/password 
widgets):

....
        elif field.type == "text":
            *# *control = TEXTAREA(value or "", _id=input_id, 
_name=field.name)    <--- MODIFIED
            control = TEXTAREA(value or "", _id=input_id, _name=field.name, 
_class="textarea")
....
....
        else:
            # field_type = "password" if field.type == "password" else 
"text"    <--- MODIFIED
            field_type = "text" if (field.type == "string" or field.type == 
"") else field.type
            control = INPUT(
                _type=field_type,
                _id=input_id,
                _name=field.name,
                _value=value,
                # _class=field_class,    <--- MODIFIED
                _class="input",
            )
        
        # key = control.name.rstrip("/")    <--- BLOCK 4 LINES UNUSED
        # if key == "input":
        #     key += "[type=%s]" % (control["_type"] or "text")
        # control["_class"] = classes.get(key, "")


Also, in Grid *create*: Boolean widget does not show selected state.
        in Grid *modify*: If a field is modified and click on "Close" 
instead of "Save", changes are saved !


-- 
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
--- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/web2py/f2631f2a-ed5d-47a4-b3d8-2ac561813d28%40googlegroups.com.

Reply via email to