There's really only that one method to render a form, so you're pretty
much stuck with the table layout that it creates.  If you really want
it to work, you'll have to subclass web.form.Form, and override the
render method...so (for example):

from web import form

class MyForm(form.Form)
    def render(self):
        out = ""
        for i in self.inputs:
            out += '<span>'+i.pre+i.render()+i.post+'</span>
        return out

Check out the source -- it's not that hard to override some basic
things for more advanced features.

Cheers,
Justin

On Oct 10, 8:16 am, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]>
wrote:
> Hello, I need to render a form with horizontal placement of elements
> (i.e. not vertical as form.render() does)
> How to do this?


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"web.py" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/webpy?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to