Hello,

Sorry I am unclear about which class you are talking about.  Do you
mean the FileListWithBlurbs class?  That is literrally all you need to
put.  All the rest is widget magic inherited from CheckBoxList.  It
will know to pass the data down from the form display funtion to the
widget(both the options data and the blurbs data).

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 = []


Notice again how now inside the template you have each list item with
a checkbox then the label and then the blurb.  You could of course
alther the template to use tables if need be.  Tell me if anything is
still confusing and also if something doesn't work.

-Ian

On 8/27/06, OriginalBrownster <[EMAIL PROTECTED]> wrote:
>
> Thank you Ian..I understand most of it...except what to actually put in
> my Class....Thank you very much...if you could just elborate..that
> would be great..
>
>
> >
>

--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to