#2447: WidgetsList should not remove declared widgets from class scope
-------------------------+--------------------------------------------------
Reporter: xaka | Owner: chrisz
Type: enhancement | Status: closed
Priority: normal | Milestone: 1.x
Component: TurboGears | Version: 1.1 HEAD
Severity: normal | Resolution: fixed
Keywords: |
-------------------------+--------------------------------------------------
Changes (by chrisz):
* status: assigned => closed
* resolution: => fixed
Comment:
I've asked ChrisA for feedback and he also agreed we should keep the
attribute.
ChrisA also suggested to output a warning if a method gets overridden by a
widget attribute which is principally a good idea. But we will actually
have to go through all the bases to check this, and I don't know if it's
really worth the effort. Also, as Pavel indicated, Python usually does not
prevent you from shooting yourself in the foot, and overriding an
attribute is the default behavior that has to be expected.
So I left it at the most simple solution, the one suggested by Pavel,
committed in the TG 1.1 and 1.5 branches. If you disagree, you may reopen
for discussion.
--
Ticket URL: <http://trac.turbogears.org/ticket/2447#comment:6>
TurboGears <http://www.turbogears.org/>
TurboGears front-to-back web development
--
You received this message because you are subscribed to the Google
Groups "TurboGears Tickets" group.
This group is read-only. No posting by normal members allowed.
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/turbogears-tickets?hl=en?hl=en