[Zope3-dev] Last chance to mess with the source layout of Zope 3

Jim Fulton jim at zope.com
Fri Feb 13 12:08:48 EST 2004


Martijn Faassen wrote:
...

>>A variation on this would be to provide separate UI packages
>>(e.g, zope.app.folder and zope.app.folderweb).
> 
> 
> -1 to folderweb like everybody else.

I'd like to pursue this a bit further.

I think that continueing to separate presentations has a number
of advantages:

- It *is* easier for people who just want to modify presentations to
   find them.

- It makes it clearer that presentatations are pluggable and how

- It enforces the separation of presentation and application code

- If we don't separate presentation into separate packages, some
   will create presentation-specific subpackages anyway.

The disadvantages of separate subpackages are:

- More packages, some of which are very small

- More navigation, but the navigation is simpler.  For example, if I'm
   in foo and I want to get to the directory with the browser code, I
   only have to cd to ../foo_browser, which isn't so bad.

I think that the advantages of separating the presentation code far outweigh
the disadvantages.

Note that we won't separate interface code except in the case of "framework"
packages that define pluggable fraemworks with interfaces where there
are expected to be multiple implemantations.

So, I feel rather strongly that we should have:

folder
folder_browser
file
file_browser

and so on. Note, again, that this separation is a good bit different
than what we have now. The presentation code is *close* to the application
code while still being separate.

Jim

-- 
Jim Fulton           mailto:jim at zope.com       Python Powered!
CTO                  (540) 361-1714            http://www.python.org
Zope Corporation     http://www.zope.com       http://www.zope.org




More information about the Zope3-dev mailing list