[Checkins] SVN: z3c.form/trunk/ - Bug: Added a widget for ``IDecimal`` field in testing setup.

Stephan Richter srichter at cosmos.phy.tufts.edu
Thu Jun 12 11:10:16 EDT 2008


Log message for revision 87328:
  - Bug: Added a widget for ``IDecimal`` field in testing setup.
  

Changed:
  U   z3c.form/trunk/CHANGES.txt
  U   z3c.form/trunk/src/z3c/form/testing.py

-=-
Modified: z3c.form/trunk/CHANGES.txt
===================================================================
--- z3c.form/trunk/CHANGES.txt	2008-06-12 11:38:18 UTC (rev 87327)
+++ z3c.form/trunk/CHANGES.txt	2008-06-12 15:10:14 UTC (rev 87328)
@@ -5,8 +5,10 @@
 Version 1.8.3 (????-??-??)
 --------------------------
 
-- Feature: The z3c.form.util module has a new function, createCSSId
-  that generates readable ids for use with css selectors from any
+- Bug: Added a widget for ``IDecimal`` field in testing setup.
+
+- Feature: The ``z3c.form.util`` module has a new function, ``createCSSId()``
+  method that generates readable ids for use with css selectors from any
   unicode string.
 
 - Bug: The ``applyChanges()`` method in group forms did not return a changes
@@ -16,6 +18,7 @@
 - Bug: Display widgets did not set the style attribute if it was
   available, even though the input widgets did set the style attribute.
 
+
 Version 1.8.2 (2008-04-24)
 --------------------------
 

Modified: z3c.form/trunk/src/z3c/form/testing.py
===================================================================
--- z3c.form/trunk/src/z3c/form/testing.py	2008-06-12 11:38:18 UTC (rev 87327)
+++ z3c.form/trunk/src/z3c/form/testing.py	2008-06-12 15:10:14 UTC (rev 87328)
@@ -101,6 +101,9 @@
         text.TextFieldWidget,
         adapts=(zope.schema.interfaces.IInt, interfaces.IFormLayer))
     zope.component.provideAdapter(
+        text.TextFieldWidget,
+        adapts=(zope.schema.interfaces.IDecimal, interfaces.IFormLayer))
+    zope.component.provideAdapter(
         widget.WidgetTemplateFactory(getPath('text_input.pt'), 'text/html'),
         (None, None, None, None, interfaces.ITextWidget),
         IPageTemplate, name=interfaces.INPUT_MODE)



More information about the Checkins mailing list