[Checkins] SVN: z3c.form/trunk/ Initialize the field widget manager
Malthe Borch
mborch at gmail.com
Tue Oct 30 14:50:25 UTC 2012
On 30 October 2012 15:30, Roger <dev at projekt01.ch> wrote:
> Why are you changing the API when you can do that without an API change?
Now that we have the optional ``prefix`` argument, then it's true that
we don't need the API change for this particular use-case.
You're probably right. The pattern I wanted was:
def updateWidgets(self):
self.widgets.prefix = "some-prefix"
super(...., self).updateWidgets()
> I'm pretty sure any cusomization in any form which
> does an additional updateWidget call for update
> will get into trouble because the widget don't get
> initialized anymore with probably different widgetFactory
> for a given mode (e.g. input, display).
But note that the IWidgets-lookup does not actually look at the
fields, or the widget factories. This happens only on ``update``.
> Probably the difference between our point o view is that you
> think the IWidgets setup is basic and not a part of a
> customization, right?
Yep, because the widgets aren't actually set up at this point.
\malthe
More information about the checkins
mailing list