Opened 17 years ago

Closed 17 years ago

#4297 closed (fixed)

make BaseForm's __errors attribute non-private

Reported by: Gary Wilson <gary.wilson@…> 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)

4297.diff (1.8 KB ) - added by Gary Wilson <gary.wilson@…> 17 years ago.
changed __errors to _errors

Download all attachments as: .zip

Change History (3)

by Gary Wilson <gary.wilson@…>, 17 years ago

Attachment: 4297.diff added

changed __errors to _errors

comment:1 by Gary Wilson <gary.wilson@…>, 17 years ago

Triage Stage: UnreviewedDesign decision needed

comment:2 by Malcolm Tredinnick, 17 years ago

Resolution: fixed
Status: newclosed

(In [5347]) Fixed #4297 -- Made form errors available to sub-classes. Thanks, Gary Wilson.

Note: See TracTickets for help on using tickets.
Back to Top