It feels completely unnatural to me to just ask the DAL for fields. I do 
get your point with the "FROM" clause whoever I don't think it maps well to 
DAL semantics. I do realize I'm not being very objective with this opinion. 

More technically, one of the biggest code smells for me, is when you need 
to remember to change things in more than one place when adding a feature. 
Someone is bound to forget it. This feature may also hide a bug where a 
user forgets to add a query for one of the tables but still gets the 
results so everything appears to be fine.

I would just remove this "feature" rather than refactor things so in the 
future people don't have to remember to change things in two places. I 
think there should be one, and only one, obvious way to do things.

-- 
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