Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Removed web2py logic for default validators #16

Merged
merged 1 commit into from
Dec 24, 2014
Merged

Conversation

gi0baro
Copy link
Member

@gi0baro gi0baro commented Dec 24, 2014

sqlhtml_validators method in helpers was based on web2py's validators logic.

This commit update the behavior of default validators addition to fields:

  • now the addition is made by the auto_validators method
  • validation addition can be used with the DAL.validators attribute, which should be a dict in the form {'field_type': validator}
  • otherwise addition can be performed by a custom method defined into DAL.validators_method attribute.

…alidators, added custom validator_method attribute
@mdipierro
Copy link
Contributor

would this break anything?

@gi0baro
Copy link
Member Author

gi0baro commented Dec 24, 2014

Let me merge this, I'm updating the PR on web2py to use this.

gi0baro added a commit that referenced this pull request Dec 24, 2014
Removed web2py logic for default validators
@gi0baro gi0baro merged commit 83d97c6 into web2py:master Dec 24, 2014
@gi0baro
Copy link
Member Author

gi0baro commented Dec 24, 2014

This is covered by: gi0baro/web2py@dd73678

So the PR web2py/web2py#561 is still valid.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants