[Checkins] SVN: z3c.formdemo/trunk/ Did some tweaks so that the "All Widgets" demo has a better user

Stephan Richter srichter at cosmos.phy.tufts.edu
Thu Jun 28 16:43:10 EDT 2007


Log message for revision 77191:
  Did some tweaks so that the "All Widgets" demo has a better user 
  experience.
  
  

Changed:
  U   z3c.formdemo/trunk/CHANGES.txt
  U   z3c.formdemo/trunk/src/z3c/formdemo/widgets/interfaces.py

-=-
Modified: z3c.formdemo/trunk/CHANGES.txt
===================================================================
--- z3c.formdemo/trunk/CHANGES.txt	2007-06-28 20:06:33 UTC (rev 77190)
+++ z3c.formdemo/trunk/CHANGES.txt	2007-06-28 20:43:10 UTC (rev 77191)
@@ -2,19 +2,36 @@
 CHANGES
 =======
 
+Version 1.2.0 (??/??/2007)
+-------------------------
+
+- Feature: Increased the integer default value of "All Widgets" demo to show
+  off our new internationalized converter.
+
+- Feature: Made ``bytesField`` and ``passwordField`` non-required, since they
+  do not show their default values prohibiting the form to successfully
+  submit, which can be annoying when playing around.
+
+- Feature: New "Questionnaire" demo shows how to use groups effectively. It
+  also demonstrates how the label of buttons and widgets can be changed using
+  attribute value adapters.
+
+
 Version 1.1.2 (6/25/2007)
 -------------------------
 
-- Bug: Provide optionalChoice field in the content type. Pre-1.3.0 releases of
-  ``z3c.form`` simply ignored missing fields, but the latest version reports
-  the error. Thanks to Luke Miller for the report.
+- Bug: Provide ``optionalChoice`` field in the content type. Pre-1.3.0
+  releases of ``z3c.form`` simply ignored missing fields, but the latest
+  version reports the error. Thanks to Luke Miller for the report.
 
+
 Version 1.1.1 (6/24/2007)
 -------------------------
 
 - Bug: Add new ``zope.rdb`` dependency to the setup and buildout
   configuration.
 
+
 Version 1.1.0 (6/22/2007)
 -------------------------
 

Modified: z3c.formdemo/trunk/src/z3c/formdemo/widgets/interfaces.py
===================================================================
--- z3c.formdemo/trunk/src/z3c/formdemo/widgets/interfaces.py	2007-06-28 20:06:33 UTC (rev 77190)
+++ z3c.formdemo/trunk/src/z3c/formdemo/widgets/interfaces.py	2007-06-28 20:43:10 UTC (rev 77191)
@@ -60,7 +60,8 @@
     bytesField = zope.schema.Bytes(
         title=u'Bytes',
         description=u'This is a Bytes field.',
-        default='\10\45\n\32')
+        default='\10\45\n\32',
+        required=False)
 
     bytesLineField = zope.schema.BytesLine(
         title=u'Bytes Line',
@@ -125,7 +126,7 @@
     intField = zope.schema.Int(
         title=u'Integer',
         description=u'This is a Int field.',
-        default=12)
+        default=12345)
 
     listField = zope.schema.List(
         title=u'List',
@@ -141,7 +142,8 @@
     passwordField = zope.schema.Password(
         title=u'Password',
         description=u'This is a Password field.',
-        default=u'mypwd')
+        default=u'mypwd',
+        required=False)
 
     setField = zope.schema.Set(
         title=u'Set',



More information about the Checkins mailing list