#1479: [Recipe] RepeatingFieldSet with custom legend and field names
---------------------------+------------------------------------------------
Reporter: glezos | Owner: chrisz
Type: documentation | Status: closed
Priority: normal | Milestone: 1.5
Component: Documentation | Version: 1.0.3
Severity: normal | Resolution: fixed
Keywords: tosplit |
---------------------------+------------------------------------------------
Changes (by chrisz):
* status: new => closed
* resolution: => fixed
Comment:
The widget template posted with his ticket does not work. There should be
a for loop for the field in fields, just as for the hidden fields.
I have allowed the "legend" parameter to be a list in the Genshi-Widget
branch (r6971). The list can even have fewer items than the repetition;
the legends will be automatically repeated as necessary. And I kept this
backward compatible, i.e. you can still pass a single value for the
legend.
The repeated ids are created automatically in `build_name_from_path()`, I
don't think we should mess with this. If you still think individual ids
are a good idea, please post working code with either an example projekt
or automated tests.
--
Ticket URL: <http://trac.turbogears.org/ticket/1479#comment:8>
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