[Zope3-dev] Death to "Views" package.

Casey Duncan casey@zope.com
Wed, 13 Nov 2002 13:47:37 -0500


Dumb Idea #371:

How about we name the view subpackages *View?

So there might be:

BrowserView
FTPView
XULView

subpackages. And maybe "CommonView" on the off chance that multiple views=
=20
reuse some view-related logic.

-Casey

On Wednesday 13 November 2002 01:42 pm, Steve Alexander wrote:
> Jim Fulton wrote:
>=20
> >=20
> > Early on, Stephan and I came up with the convention of putting views
> > in view-type-specific subpackages within a "Views" subpackage. This
> > means that most packages have a Views subpackage that has a Browser
> > subpackage. While I still like the idea of separating Browser views
> > into their own subpackage, I find the intermediate "Views" package to
> > be unnecessary and quite annoying.
> >=20
> > I'd like to make a papal edict that we stop creating "Views" packages
> > and as time permits, start refactoring away our existing views
> > directory (or maybe have one refactoring that removes all of them).
> > Before I make the edict, however, I'd like to see if there are
> > dissenting opinions. :)
>=20
> The name "Browser" implies "View" well enough for me. So, I don't see=20
> the need for an intermediate Views directory.
> Also, if I'm definiing Resources, I don't think I'd want to have:
>=20
> Contact/Views/Browser/foo
> Contact/Resources/Browser/bar
>=20
> Better to have
>=20
> Contact/Browser/foo
> Contact/Browser/bar
>=20
>=20
> > At this point, it's worth asking whether it would be better to avoid
> > the veiw-specific subpackages altogether, although I still find them
> > useful.
>=20
> Keep the views separate from the content. This makes the tests separate=
=20
> too. Tests of views are typically very different than tests of content.
>=20
> Contact
> Contact/tests
> Contact/Browser
> Contact/Browser/tests
> Contact/FTP
> Contact/FTP/tests
>=20
> --
> Steve Alexander
>=20
>=20
>=20
> _______________________________________________
> Zope3-dev mailing list
> Zope3-dev@zope.org
> http://lists.zope.org/mailman/listinfo/zope3-dev
>=20