I vaguely remember some discussion about this, but should IS_NOT_EMPTY trim
the value?
The below passes validation, so when spaces are entered into the form (or by
a robot), it gets inserted into the database.
I'm assuming the proper way of using this is using it in conjunction with
the CLEANUP validator?
(value, error) = IS_NOT_EMPTY()(" ")
-Thadeus
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"web2py-users" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/web2py?hl=en
-~----------~----~----~----~------~----~------~--~---