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 web2py@googlegroups.com To unsubscribe from this group, send email to web2py+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/web2py?hl=en -~----------~----~----~----~------~----~------~--~---