For me, I mostly use the DAL directly in controllers. But, I have a few areas where there is really complicated business logic that is needed by multiple controller functions. Instead of repeating that complicated logic in the controller, I've created classes (stored in /modules) that I import and execute in my controller functions. But as I said, there are very few. Out of hundreds of controller functions, separate classes are used in only a couple dozen.
Using the DAL directly in controller methods is a big part of why you can develop so quickly using web2py. What I try to do is keep it simple. Use the DAL directly when appropriate and only use classes/objects to keep from repeating yourself. Just my 2 cents... -Jim On Friday, November 18, 2016 at 7:12:52 AM UTC-6, mfarees...@gmail.com wrote: > > I understand your point now. But if controllers are accessing the DAL then > what goes in the models and modules? The modules will have the BO (later), > what else? > -- 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.