Jump to >

reviewboard.site.validation

validate_users(form, field=u'users')[source]

Validates that the users all have valid, matching LocalSites.

This will compare the LocalSite associated with the form to that of each added User. If the form has a LocalSite set, then all Users are required to be a part of that LocalSite. Otherwise, any User is allowed.

validate_review_groups(form, field=u'review_groups')[source]

Validates that the review groups all have valid, matching LocalSites.

This will compare the LocalSite associated with the form to that of each added Group. Each Group must have the same LocalSite that the form is using.