For me the best way to access the DAL is directly in the controllers, 
"business objects" like the ones you're creating are something that should 
come late in a project. For instance, if you notice that many controllers 
are always doing the same query. The best way to refactor that code is not 
even necessarily a class like your business objects, it may be a simple 
decorator you apply to the controllers that need them (like 
auth.requires_login()). The point is, you are creating a bunch of code for 
each business object you don't even know is needed at this point, that code 
creates overhead and may not even make your code shorter or more readable.

-- 
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 web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to