I suspect this model is intended to describe the original MVC pattern of 
event-driven desktop GUI apps rather than MVC as commonly implemented in 
web frameworks. The view in particular in this diagram doesn't quite map to 
what web2py calls a view.

Note, some frameworks, such as Django and Flask, use different terminology 
for the controller and view. What web2py calls controllers, Django calls 
views, as they are functions/classes responsible for updating the model 
data or getting data from the model to be displayed to the user. What 
web2py calls views, Django simply calls templates. Django considers the 
framework itself (in particular, the logic that routes HTTP requests to 
views) as the "controller" part of the MVC architecture. For further 
explanation, see here 
<https://docs.djangoproject.com/en/dev/faq/general/#django-appears-to-be-a-mvc-framework-but-you-call-the-controller-the-view-and-the-view-the-template-how-come-you-don-t-use-the-standard-names>and
 
here 
<https://lukeplant.me.uk/blog/posts/mvc-is-not-a-helpful-analogy-for-django/>
.

The point is, there can be a lot of confusion about terminology. So, rather 
than ask whether web2py allows the model to be updated from the view, it 
might be more productive if you explain exactly what you are trying to 
achieve (and why).

Anthony

On Thursday, November 9, 2017 at 1:42:09 AM UTC-5, Mike Stephenson wrote:
>
>
> <https://lh3.googleusercontent.com/-omg8HOU9RD0/WgP4tkJwyeI/AAAAAAAAAdk/YDxsx0Ig034TI-FudsM8l8LC1sXD9UpcgCLcBGAs/s1600/MVC%2Bflow%2Bdiagram.PNG>
>
>
> <https://lh3.googleusercontent.com/-omg8HOU9RD0/WgP4tkJwyeI/AAAAAAAAAdk/YDxsx0Ig034TI-FudsM8l8LC1sXD9UpcgCLcBGAs/s1600/MVC%2Bflow%2Bdiagram.PNG>
> Can model directly communicate with the model as depicted in the MVC flow 
> diagram here?
>

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