Ticket #3 (closed defect: fixed)

Opened 4 years ago

Last modified 3 years ago

Allow a form's callback method to return multiple errors

Reported by: Matt Goodall <matt@pollenation.net> Assigned to: somebody
Priority: normal Milestone:
Component: form-core Version:
Severity: normal Keywords:
Cc:

Description

Here's the patch:

hunk ./forms/form.py 159
+        # Make sure we still have no errors
+        errors = iforms.IFormErrors(ctx)
+        if errors:
+            return errors

That should means that a form callback can do something like:

errors = IFormErrors(ctx)
errors.add(...)
errors.add(...)
return errors

Change History

08/07/05 23:10:32 changed by anonymous

  • status changed from new to closed.
  • resolution set to fixed.