On Monday, February 9, 2015 at 8:55:47 AM UTC-5, Carlos Cesar Caballero 
Díaz wrote:
>
>
> > Does the book actually specifically recommend that all queries go in 
> > controllers? If so, can you point that out, as it should be changed. 
> > 
>
> No, but in all examples, queries are in controllers, sufficient for a 
> reader to infer that. 
>

Can you point to an example of a query in the book that you think should 
instead have been shown in a model?
 

> > I agree that could just as easily go in the view, but I don't see the 
> > harm in having it here. 
> Because it confuses the designers, who on many occasions not know python 
> or web2py, this makes a big difference when you are working alone, but 
> complicated when a third party needs to make changes 
>

Of course, if you are working with designers who don't know and are not 
interested in learning Python, it makes sense to keep as much as possible 
in pure HTML. But that is not the only context within which web2py is used. 
If you don't want to use the HTML helpers, you don't have to, but that 
doesn't mean they should not appear in any book examples.

Anthony

-- 
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
--- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to