Hi,
I use the following interface:

class ILettrage(IRecord):
    record_to_write = zope.schema.List(
        title= u'Record to write',
        description = u'Records written',
        required=False,
        value_type = zope.schema.Object(schema=IRecordLettree)
    )

This interface is used in a z3c.form:

class LettrageEditForm(form.EditForm):
    form.extends(form.EditForm)
    fields = field.Fields(ilettrage.ILettrage).select('t_record_ref',
'record_to_write')

    def updateWidgets(self):
        super(LettrageEditForm, self).updateWidgets()
        self.widgets['t_record_ref'].mode = DISPLAY_MODE
self.widgets['invoice_to_write'].widgets[0].subform.widgets['t_invoice_ref'].mode
= DISPLAY_MODE
_______________________________________________
Zope3-users mailing list
Zope3-users@zope.org
https://mail.zope.org/mailman/listinfo/zope3-users

Reply via email to