The tg_errors message is reasonable and matches the structure of the
form. The error is generated when I enter non-numeric characters, as
expected.

Here is the template that is used to generate each order line:

class PluLineSet(widgets.RepeatingFieldSet):
    template = """
        <div xmlns:py="http://purl.org/kid/ns#";>
        <table class='${css_classes}'>
          <tr>
              <th py:for="field in fields">
                <label class="fieldlabel" for="${field.field_id}"
py:content="field.label" />
              </th>
          </tr>
          <tr py:for="repetition in repetitions" class="$
{field_class}" id="${field_id}_${repetition}">
            <span py:if="value_for(fields[0])" >
            <legend py:if="legend" py:content="'y'+legend" />
            <div py:for="field in hidden_fields"
                py:replace="field.display(value_for(field),
**params_for(field))"
            />
            <td py:for="field in fields">
                <span py:content="field.display(value_for(field),
**params_for(field))" />
                <span py:if="error_for(field)" class="fielderror"
py:content="error_for(field)" />
            </td>
            </span>
          </tr>
        </table>
        </div>
        """


--~--~---------~--~----~------------~-------~--~----~
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?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to