Patch submit

MikaĆ«l Barbero <[email protected]> Wed, 13 Jul 2005 15:08:57 +0200
Newsgroups gmane.comp.web.zope.formulator.devel
Message-ID <[email protected]>
--Apple-Mail-1--928467144
Content-Transfer-Encoding: 7bit
Content-Type: text/plain;
	charset=US-ASCII;
	delsp=yes;
	format=flowed

I've just make a patch for FieldRegistry.py file.
It allows people to add "group" property in the "property_names"  
fields declaration. An example :

barcodeStartString = fields.StringField('barcodeStartString',
                                                                       t 
itle='Barcode Prefix String',
                                                                       d 
escription=("The string which is prefixed by the barcode while  
reading"),
                                                                       d 
efault="",
                                                                       r 
equired=1,
                                                                       g 
roup="barcode configuration")

This is a good functionnality in order to have to abilty to classify  
clearly custom fields' options.
Please tell me if you accept it.

Regards,
Mikael


--Apple-Mail-1--928467144
Content-Transfer-Encoding: 7bit
Content-Type: text/x-python-script; x-mac-type=54455854; x-unix-mode=0644;
	name="patch_FieldRegistry.py"
Content-Disposition: attachment;
	filename=patch_FieldRegistry.py

90c90,94
<         form.add_field(field, "widget")
---
> 	if (field.get_value("group") != ""):
> 	    group = field.get_value("group")
> 	else:
> 	    group = "widget"
>         form.add_field(field, group)
97,98c101,102
<         tales_form.add_field(tales_field, "widget")
< 
---
>         tales_form.add_field(tales_field, group)
>         
104,106c108,110
<         override_form.add_field(method_field, "widget")
< 
<     for field in getPropertyFields(field_class.validator):
---
>         override_form.add_field(method_field, group)
>         
>     for field in getPropertyFields(field_class.validator): 
--Apple-Mail-1--928467144
Content-Transfer-Encoding: 7bit
Content-Type: text/plain;
	charset=US-ASCII;
	format=flowed




--Apple-Mail-1--928467144
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

_______________________________________________
formulator-dev mailing list
[email protected]
https://infrae.com/mailman/listinfo/formulator-dev

--Apple-Mail-1--928467144--