Package aquarium :: Package util :: Module FormValid :: Class FieldGroup
[show private | hide private]
[frames | no frames]

Class FieldGroup


This class allows you to group fields together and do validation based on the results of the validation of those fields

name
A string that represents the name of this group
function
A user-specified function callback that will be called with all of the values of the group (as a dict) iff each of the values of the group validate successfully on their own. To ensure that empty fields in a group validate, use the default karg when creating each Field. This function need return a single string (error message) on error or None if the group is valid.

Method Summary
  __init__(self, name, function, fields, **kargs)
  __getattr__(self, name)
  validate(self, values)
Attempts validation of each of the Fields in this group.

Method Details

validate(self, values)

Attempts validation of each of the Fields in this group. Returns results consistent with Field.validate and Form.validate


Generated by Epydoc 2.1 on Mon Jan 1 16:34:19 2007 http://epydoc.sf.net