If you benefit from web2py hope you feel encouraged to pay it forward by contributing back to society in whatever form you choose!


  • 0
    emilio-sanchez-sierra-11473  6 years ago

    I would like to add that if this is used in a form that uses an 'onvalidation' and the validation fails, it corrupts the data by adding artifacts (in the form of "'[" and related).   To fix this,  modify the method tags_widget with:

     

        inp_hiden = INPUT(
                     _type="hidden",
                     _name=field.name,
                     _id=id,
                     _class=field.type,
                     _value=value[0] if value else value,
                     requires=field.requires,
                     )

     

    This happen even if you apply piemaster21 changes (which are awesome btw).

     

Commented on:

list:string types do not come yet with pratical dynamic validator and widget so I wrote one. It handles list:string like text tags separated by comma by in a transparent way.

Hosting graciously provided by:
Python Anywhere