Opened 17 years ago
Closed 17 years ago
#4297 closed (fixed)
make BaseForm's __errors attribute non-private
Reported by: | Owned by: | Adrian Holovaty | |
---|---|---|---|
Component: | Forms | Version: | dev |
Severity: | Keywords: | ||
Cc: | Triage Stage: | Design decision needed | |
Has patch: | yes | Needs documentation: | no |
Needs tests: | no | Patch needs improvement: | no |
Easy pickings: | no | UI/UX: | no |
Description
Having __errors
as a private attribute makes building subclasses that want to access or manipulate errors harder than it could be since the __errors
attribute is "hidden away" in the parent class. To have access to the subclass's __errors
attribute you have to override any parent class method that sets the __errors
attribute (so that it is stored as a private attribute of the subclass instead of a private attribute of the parent class.
Attachments (1)
Change History (3)
by , 17 years ago
comment:1 by , 17 years ago
Triage Stage: | Unreviewed → Design decision needed |
---|
comment:2 by , 17 years ago
Resolution: | → fixed |
---|---|
Status: | new → closed |
Note:
See TracTickets
for help on using tickets.
changed
__errors
to_errors