durusmail: quixote-users: Controlling form2 render method
Controlling form2 render method
2004-03-07
2004-03-07
Controlling form2 render method
Dave Kuhlman
2004-03-07
On Sat, Mar 06, 2004 at 04:58:14PM -0800, Samir Patel wrote:
> form2 has a very powerful render method. I am using
> SQLObject with Quixote and creating form
> automatically. I like to put more than 1 control on a
> same row (for example, firstname, lastname and
> middlename). If I use form2s' render method, it will
> put them on seperate row. Is there anyway to render it
> differently so that it will put them on same row.

One suggestion -- Create a subclass of form2.Form, then override
methods Form.render(), Form._render_start(), Form._render_finish(),
Form._render_sep(), etc. as needed.

Dave

--
Dave Kuhlman
dkuhlman@rexx.com
http://www.rexx.com/~dkuhlman


reply