ModelViewController
Notes on Model/View
The ZopeMozilla project has emphasized a need to break Zope into a Model-View-Controller (MVC) architecure. This need was reinforced by Jon Udell's talk at the Zope Track, in which he asserted that Zope shouldn't return HTML when an XML-RPC client adds a folder.
This Wiki collects information about MVC and how it can apply to Zope.
Recommended Reading
A Google search on model/view
turns up quite a wealth of
fabulously written pieces.
First, two articles with lots of pretty graphics. Model View Controller. Model-View-Presenter Framework.
Next, a terse architectural description at The Model-View-Controller Architecture.
A practical treatment is given at the model-view-controller design pattern . The resource also has a list of references. This is a tutorial spread across about ten pages that demonstrates MVC in practice using Java.
--------------------
I'll be typing down my thoughts on this: ZopeMVC --MartijnPieters
- JodyWinston
- My concern with MVC is basically what are we going to do about cycles? All of my MVC code in CPython has a finalize method that only exists to break cycles.
Please allow us to use plain text formatting, the code looks very poor.
Shalabh : Look at ModelCode now. I grouped the code in (pre) (/pre) and it worked! (bug in wiki?)
- JodyWinston
- Thanks, I added the (pre) and (/pre) to the code.
Here's some code to get the discussion started ModelCode, ViewCode, ControllerCode, EventCode, ReasonCode, ModelDetetedCode, CallbackCode, and a SampleUse.
A container that holds both the View and the Controller is shown in ObserverCode.
Update
24/02/2000 I have started work on a ZopeMVCProposal --MartijnPieters