[Zope-dev] plone.z3cform: ExtensibleForm should not change groups class attribute

Gerhard Weis gweis at gmx.at
Fri Aug 14 02:50:30 EDT 2009


Hi,

Sorry if this is the wrong list, but as plone.z3cform is in the 
zope-svn. I thought it may be Ok.

There is a small problem in plone.z3cform. The class 
plone.z3cform.fieldsets.extensible.ExtensibleForm has a class attribute 
groups, which is changed by the provided API methods. I don't think this 
is intentional, becuase it makes it hard to recreate additional 
instances of ExtensibleForm. The current behaviour works for forms which 
use already groups, but for forms, where the EtensibleForm creates new 
groups on the fly, it does not work. The attached patch fixes this. It 
also includes a small addition to the Readme, which failes without the 
patch applied, and runes clean with the patch applied.

cheers,

Gerhard


-------------- next part --------------
A non-text attachment was scrubbed...
Name: do_not_change_groups_class_field.patch
Type: text/x-patch
Size: 2107 bytes
Desc: not available
Url : http://mail.zope.org/pipermail/zope-dev/attachments/20090814/8ec86079/attachment.bin 


More information about the Zope-Dev mailing list