Yes. The fact that you can do it, does not man you should do it.

Sometime need to build HTML programmatically, for this reason web2py
provides a OOP server side representation of the DOM so that you never
have to manipulate strings in the controllers.

You can use this to build forms but you do not have to.

Often it is better to use

form=SQLFORM.factory(Field(...), Field(...), Field(...))

and then customize the form in the view.

Massimo


On Sep 10, 8:13 pm, Ryan Montgomery <[email protected]> wrote:
> I am new to web2py and I have some questions. The first one being:
>
> Does the ability to creating Forms with html tables in the controller
> violate the principal of "Separation of Concerns"? Shouldn't this
> "view logic" be handled in the view and not in the controller?
>
> Please reference example 
> #28http://www.web2py.com/examples/default/examples#form_examples
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"web2py-users" 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/web2py?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to