> > Second, there is a logical problem. Validators are designed to take > > the input as submitted by a web form and not as passed to the input > > function. For example for a IS_DATE a validator expects a "string" in > > the user locale, while input expects a datetime.date object or an ISO > > serialized date. > > I didn't get this one. how input expects a datetime object?
Let me make the case with another type. db.auth_user.insert(password=encrypted_password) while with your patch db.auth_user.insert(password=unencrypted_password) because the CRYPT validator would convert the unencrypted into the encrypted password. insert expects raw data as it goes in the DB, form contain data represented as strings. They two are different for almost every type but text and strings. Even if you do not use any helpers it is not a good idea to bypass accepts(...) -- 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.

