[Zope3-dev] separation of view hierarchy

Florent Guillaume fg@nuxeo.com
Fri, 13 Dec 2002 07:31:22 +0100


> > My big problem at the moment with ProposedDirectoryHierarchy is the
> > removal of the View package. If we only have zope.app.browser instead of
> > zope.app.view.browser, there's absolutely no way to factor out code
> > that's specif to views but not specific to browsers. For instance
> > sorting of folder contents, helper formatting functions, and so on.
> 
> Sorting would not be considered a View, but an Adapter functionality and 
> should be located with the actual folder code.

Huh? Why is that?
Sorting is only done for display purposes and has nothing to do with
the functionning of the folder. The convenience of sorting a specialized
list of dicts containing dates in a certain format, for instance, has
nothing to do in the actual folder code IMO.

Florent

-- 
Florent Guillaume, Nuxeo (Paris, France)
+33 1 40 33 79 87  http://nuxeo.com  mailto:fg@nuxeo.com