Hello, I think you should just modify the widget. It sounds like overkill at first but it really isn't that bad. Just inherit from CheckBoxList and copy the template from the source. You probably want to do something like this. Note that I had to modify the template slightly to fit in the blurbs and so make sure the number of options match up with the number of blurbs.
Outside in your controllers.py file you make your widget's class, declare an instance of it and make your form: class FileListWithBlurbs(CheckBoxList): template = """ <ul xmlns:py="http://purl.org/kid/ns#" class="${field_class}" id="${field_id}" py:attrs="list_attrs" > <li py:for="i in xrange(0, len(options))"> <?python value, desc, attrs = options[i] ?> <?python blurb = blurbs[i] ?> <input type="checkbox" name="${name}" id="${field_id}_${value}" value="${value}" py:attrs="attrs" /> <label for="${field_id}_${value}" py:content="desc" /> ${blurb} </li> </ul> """ params = ['blurbs'] params_doc = {'blurbs': "A blurb for each list item."} blurbs = [] fileListWithBlurbs = FileListWithBlurbs(name="PublicFiles") public_form = TableForm(name='form', submit_text = 'Download Files', fields = [fileListWithBlurbs]) In your controller object you have your exposed method, @expose(html=...) def viewFileList(self): fileListOptions = ... fileListBlurbs = ... return dict(public_form = public_form, fileListOptions=fileListOptions, fileListBlurbs=fileListBlurbs) Then when you display it on your kid page you can pass in the options and blurbs like this, ${public_form(options=dict(PublicFiles=fileListOptions), blurbs=dict(PublicFiles = fileListBlurbs))} Sorry if that was excessively wordy and there might be some mistakes but hopefully it helps. -Ian On 8/27/06, OriginalBrownster <[EMAIL PROTECTED]> wrote: > > I was not aware that you are able to map the key:value part to html > tags.... > > Right now the checkboxlist is just one list within the column...it is > not split up into rows, I have not edited the widget at all... > > So it is possible to split that checkboxlist into specific rows for > each checkbox?? > > how would this be accomplished?? > > > > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "TurboGears" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/turbogears -~----------~----~----~----~------~----~------~--~---

