#2447: WidgetsList should not remove declared widgets from class scope
-------------------------+--------------------------------------------------
 Reporter:  xaka         |        Owner:  chrisz  
     Type:  enhancement  |       Status:  assigned
 Priority:  normal       |    Milestone:  1.x     
Component:  TurboGears   |      Version:  1.1 HEAD
 Severity:  normal       |   Resolution:          
 Keywords:               |  
-------------------------+--------------------------------------------------
Comment (by xaka):

 You about extending object's scope by passed widgets? Make sence, but few
 problem exists:
  * every widget in list may haven't name (default "widget" will used) and
 because  setattr(self, widget.name, widget) will not work (duplicate
 names, overriding).

  * much work need to be done: redefine append, insert, remove, etc., i.e.
 to be in sync

 I think removing del statement and nothing more will be right. i.e. just
 don't touch what user defined and expecting.

-- 
Ticket URL: <http://trac.turbogears.org/ticket/2447#comment:5>
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

Reply via email to