Michael Wechner wrote:
Thorsten Scherler wrote:

[...]

I disagree. The model should be free from presentation logic. Visibility
is presentation logic which could be changed for certain roles or
workflow situation. I agree with Josias that it belongs to the view.

I also think that it should belong to the view and not the actual
data. There can be many different views/maps of the actual data, just
as one has different maps in geography.


So you propose to have a separate model for each view, sort of a model
of a model? It seems to me that this approach will add unnecesary
complexity which leads to poor maintainability. Every change in the
main model has to be reflected in each model of every view.

Another approach is to use per-view metadata, i.e. each
view (e.g. the sitetree) is free to add attributes to the document
(see CustomMetaData). This way, the data are kept together and the MVC
axiom can be maintained.

WDYT?

- Felix

--
Felix Röthenbacher                  [EMAIL PROTECTED]
Wyona Inc.  -   Open Source Content Management   -   Apache Lenya
http://www.wyona.com                      http://lenya.apache.org

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to