#2447: WidgetsList should not remove declared widgets from class scope
-------------------------+--------------------------------------------------
Reporter: xaka | Owner:
Type: enhancement | Status: new
Priority: normal | Milestone: __unclassified__
Component: TurboGears | Version: 1.1 HEAD
Severity: normal | Keywords:
-------------------------+--------------------------------------------------
{{{
class NamedFields(WidgetsList):
username = TextField(...)
password = TextField(...)
fields = NamedFields()
fields.username
fields.password
}}}
Sometimes very convenient and usefull to refer to a specific widget by
name.
Because it was declared in class scope i expect to be able to refer to it
in my code.
Make sence only for declared widgets but not passed to the constructor.
Fix and test cases attached.
{{{
x...@ubuntu:~/work/turbogears$ svn info
URL: http://svn.turbogears.org/branches/1.1
Revision: 6997
}}}
{{{
----------------------------------------------------------------------
Ran 440 tests in 30.086s
OK
}}}
--
Ticket URL: <http://trac.turbogears.org/ticket/2447>
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