FormControls should reference their containing Form
Bug #3568 reported by
wouter bolsterlee
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Anewt |
Fix Released
|
Medium
|
wouter bolsterlee |
Bug Description
FormControl instances should hold a reference to their Container. This come in handy especially when controls have to query the form or to even change it (needed for file uploads + form encoding).
At a slightly related note: maybe validators should also be able to reference their associated control, but this breaks the "use validators without a form" use case.
Changed in anewt: | |
assignee: | nobody → uws |
status: | New → Accepted |
To post a comment you must log in.
First point looks sound.
Second point: what usercases would be supported? As said, it only limits portability of the validator.