[Checkins] SVN: z3c.formui/trunk/ Update the templates to reflect the changes made in z3c.form.

Stephan Richter srichter at cosmos.phy.tufts.edu
Tue Aug 7 23:29:21 EDT 2007


Log message for revision 78680:
  Update the templates to reflect the changes made in z3c.form.
  

Changed:
  U   z3c.formui/trunk/CHANGES.txt
  U   z3c.formui/trunk/src/z3c/formui/div-form.pt
  U   z3c.formui/trunk/src/z3c/formui/table-form.pt

-=-
Modified: z3c.formui/trunk/CHANGES.txt
===================================================================
--- z3c.formui/trunk/CHANGES.txt	2007-08-08 03:21:31 UTC (rev 78679)
+++ z3c.formui/trunk/CHANGES.txt	2007-08-08 03:29:20 UTC (rev 78680)
@@ -8,6 +8,10 @@
 - Refactoring: Update CSS classes to reflect latest changes to the widget
   classes in ``z3c.form``.
 
+- Bug: Error view snippets may have a empty ``widget`` attribute values, so we
+  cannot rely on accessing the label of the widget. This is the case, if the
+  error view sniipet was created from an invariants validation error.
+
 - Bug: The table-form template did not properly render the error at the
   widget, because the ``render()`` method was not called. Thanks to Markus
   Leist for the report.

Modified: z3c.formui/trunk/src/z3c/formui/div-form.pt
===================================================================
--- z3c.formui/trunk/src/z3c/formui/div-form.pt	2007-08-08 03:21:31 UTC (rev 78679)
+++ z3c.formui/trunk/src/z3c/formui/div-form.pt	2007-08-08 03:29:20 UTC (rev 78680)
@@ -35,7 +35,9 @@
             tal:condition="view/widgets/errors"
             metal:define-macro="errors">
           <li tal:repeat="error view/widgets/errors">
-            <span tal:replace="error/widget/label" />:
+            <tal:block condition="error/widget">
+              <span tal:replace="error/widget/label" />:
+            </tal:block>
             <span tal:replace="structure error/render">Error Type</span>
           </li>
         </ul>

Modified: z3c.formui/trunk/src/z3c/formui/table-form.pt
===================================================================
--- z3c.formui/trunk/src/z3c/formui/table-form.pt	2007-08-08 03:21:31 UTC (rev 78679)
+++ z3c.formui/trunk/src/z3c/formui/table-form.pt	2007-08-08 03:29:20 UTC (rev 78680)
@@ -35,7 +35,9 @@
             tal:condition="view/widgets/errors"
             metal:define-macro="errors">
           <li tal:repeat="error view/widgets/errors">
-            <span tal:replace="error/widget/label" />:
+            <tal:block condition="error/widget">
+              <span tal:replace="error/widget/label" />:
+            </tal:block>
             <span tal:replace="structure error/render">Error Type</span>
           </li>
         </ul>



More information about the Checkins mailing list