[Zope] z3c.form 1.3.0, z3c.formui 1.0.1, and z3c.formdemo 1.1.0 released!

Jeff Kowalczyk jtk at yahoo.com
Sun Jun 24 23:11:27 EDT 2007


On Sun, 24 Jun 2007 22:42:35 -0400, Stephan Richter wrote:
> Yes, thanks for the report. Cheeseshop was slow on Friday, so I could not try 
> the package. I just released formdemo 1.1.1, which fixes the problem.

Thanks for the z3c.form package and the demo.

There is an optionalChoiceField addition to browser.py which fixes an
error on the 'All Widgets' demos:

 $ svn diff
 Index: src/z3c/formdemo/widgets/browser.py
 ===================================================================
 --- src/z3c/formdemo/widgets/browser.py (revision 77026)
 +++ src/z3c/formdemo/widgets/browser.py (working copy)
 @@ -44,6 +44,7 @@
      bytesField = FieldProperty(interfaces.IAllFields['bytesField'])
      bytesLineField = FieldProperty(interfaces.IAllFields['bytesLineField'])
      choiceField = FieldProperty(interfaces.IAllFields['choiceField'])
 +    optionalChoiceField = FieldProperty(interfaces.IAllFields['optionalChoiceField'])
      dateField = FieldProperty(interfaces.IAllFields['dateField'])
      datetimeField = FieldProperty(interfaces.IAllFields['datetimeField'])
      decimalField = FieldProperty(interfaces.IAllFields['decimalField'])
 
 
 
 ERROR SiteError http://localhost:8081/++skin++Z3CFormDemo/widgets.html
 Traceback (most recent call last):
   File "/software/formdemo/eggs/tmpdsM7XZ/zope.publisher-3.4.0b1_r76188-py2.4.egg/zope/publisher/publish.py", line 133, in publish
   File "/software/formdemo/eggs/tmpK-tlc_/zope.app.publication-3.4.0a1_2-py2.4.egg/zope/app/publication/zopepublication.py", line 167, in callObject
   File "/software/formdemo/eggs/tmpdsM7XZ/zope.publisher-3.4.0b1_r76188-py2.4.egg/zope/publisher/publish.py", line 108, in mapply
    - __traceback_info__: <security proxied z3c.pagelet.zcml.AllFieldsForm instance at 0x8b9038c>
   File "/software/formdemo/eggs/tmpdsM7XZ/zope.publisher-3.4.0b1_r76188-py2.4.egg/zope/publisher/publish.py", line 114, in debug_call
   File "/software/formdemo/src/z3c/formdemo/widgets/browser.py", line 86, in __call__
     self.update()
   File "/software/formdemo/eggs/z3c.form-1.3.0-py2.4.egg/z3c/form/form.py", line 139, in update
     super(Form, self).update()
   File "/software/formdemo/eggs/z3c.form-1.3.0-py2.4.egg/z3c/form/form.py", line 88, in update
     self.updateWidgets()
   File "/software/formdemo/src/z3c/formdemo/widgets/browser.py", line 82, in updateWidgets
     super(AllFieldsForm, self).updateWidgets()
   File "/software/formdemo/eggs/z3c.form-1.3.0-py2.4.egg/z3c/form/form.py", line 200, in updateWidgets
     self.widgets.update()
   File "/software/formdemo/eggs/z3c.form-1.3.0-py2.4.egg/z3c/form/field.py", line 255, in update
     widget.update()
   File "/software/formdemo/eggs/z3c.form-1.3.0-py2.4.egg/z3c/form/browser/select.py", line 46, in update
     super(SelectWidget, self).update()
   File "/software/formdemo/eggs/z3c.form-1.3.0-py2.4.egg/z3c/form/widget.py", line 176, in update
     super(SequenceWidget, self).update()
   File "/software/formdemo/eggs/z3c.form-1.3.0-py2.4.egg/z3c/form/widget.py", line 96, in update
     value = zope.component.getMultiAdapter(
   File "/software/formdemo/eggs/z3c.form-1.3.0-py2.4.egg/z3c/form/datamanager.py", line 48, in get
     return getattr(context, self.field.__name__)
 AttributeError: 'AllFields' object has no attribute 'optionalChoiceField'
 
 
 



More information about the Zope mailing list