The is the main CherryClass of the module. To create a form, you should declare a CherryClass that inherits from Form.
You may use the following variables and methods:
If a field has an error, the function should set the errorMessage member variable of the FormField instance.
def postForm(self, **kw): if self.validateForm(): # Yes, the data is correct # Do what you want here pass else: # No, the data is incorrect # Redisplay the form and tell the user to fix the errors: return "<html><body><font color=red>Fill out missing fields</font>"+self.formView(1)+"</body></html>"
See About this document... for information on suggesting changes.