On 21 March 2002, Titus Brown said:
> I just noticed in RadiobuttonsWidget that 'delim' must be specified
> at the time of creation, rather than at the time of rendering. Would
> it be possible to provide it and/or override it in render() as a kw
> argument?
Yes, that really is a render-time decision. The trouble is that the
signature of the render() method is
def render (self, request):
so there isn't anywhere to add extra render-time info. All the widget
classes work like this -- information needed at render-time is passed to
the constructor. This hasn't been a problem for us, because our system
tends to create Widget (and Form) objects very late -- usually right
before rendering them. If your Widget objects have an actual lifetime,
well, hmmm... my best defence is that they just weren't designed to work
that way!
Greg