durusmail: quixote-users: form2 widget render (change in 1.0b2 from 1.0b1)
form2 widget render (change in 1.0b2 from 1.0b1)
2004-07-24
form2 widget render (change in 1.0b2 from 1.0b1)
2004-07-25
form2 widget render (change in 1.0b2 from 1.0b1)
Charles Brandt
2004-07-24
Hi,

Sorry this is a bit delayed, but I just got around to updating quixote from
1.0b1.  I've been experimenting with the new form2 package I'm a little
concerned with the new way widgets are rendered.  If I'm reading correctly the
functionality that was previously in the Form class's render_field() has moved
to the Widget's render().

The problem I'm running into is how to override this since the Widget class is
inherited by all of the other types of widgets.  Subclassing the various derived
widget types to override seems cumbersome.  I'm hoping there is another way
since it seems limiting to require the widget structure to be fixed.  I don't
think CSS would be able to address something like wanting to move the hint
immediately after the title.  (or using a different CSS class name scheme, etc)

At the form level it was a lot easier to make custom and one-off forms.  Is this
still possible?  Any other opinions on this?

Thanks in advance,

-Charles.
reply