<div dir="ltr"><div><div><div><div>It's not the most elegant way but it does the job:<br><br>    def updateWidgets(self):<br>        super(StepAddForm, self).updateWidgets()<br>        AddAction = button.StaticButtonActionAttribute(<br>
            u'Add Action', button=self.widgets['o_action_list'].buttons['add'])<br>        zope.component.provideAdapter(factory=AddAction, name='title')<br>        super(StepAddForm, self).updateWidgets()<br>
<br><br></div>where o_action_list is the zope.schema.List field.<br><br></div>I have to call super(StepAddForm, self).updateWidgets() because self.widgets is not avalaible before the call.<br><br></div>Regards,<br></div>Simon <br>
</div><div class="gmail_extra"><br><br><div class="gmail_quote">On Sun, Jul 14, 2013 at 3:12 AM, Simon Elbaz <span dir="ltr"><<a href="mailto:elbazsimon9@gmail.com" target="_blank">elbazsimon9@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div><div>Hi,<br><br></div>In the z3c.form.AddForm, zope.schema.List field is rendered with Add/Delete buttons.<br>
<br></div><div>How to customize those labels ?<br><br>My code does not have any effect:<br>AddAction = button.StaticButtonActionAttribute(<br>
    u'Add Action', button=multi.MultiWidget.buttons['add'],<br>        form=StepAddForm)<br><br></div><div>Thanks for your help<span class="HOEnZb"><font color="#888888"><br></font></span></div><span class="HOEnZb"><font color="#888888"><div>
Simon Elbaz<br></div></font></span></div>
</blockquote></div><br></div>