diff --git a/view/README.txt b/view/README.txt index f113647..5bf71ac 100644 --- a/view/README.txt +++ b/view/README.txt @@ -5,8 +5,18 @@ All about Views, Templates, ... $Id$ -Generic Views -============= +Basic (Generic) Browser Views +============================= + + +Generic Views (Obsolete) +======================== + +(This was an attempt to develop a really generic view framework base on +the `PAC `_ +patten, that was never used in a real application. +The cybertools.view.web package is kept because it is directly +referenced by package-includes entries in live installations.) OK, there aren't really generic views. Already the first implementation we want to look at is a specic one: It is based on Zope Page Templates and diff --git a/view/browser/__init__.py b/view/browser/__init__.py new file mode 100644 index 0000000..38314f3 --- /dev/null +++ b/view/browser/__init__.py @@ -0,0 +1,3 @@ +""" +$Id$ +""" diff --git a/view/base.py b/view/pac.py similarity index 91% rename from view/base.py rename to view/pac.py index 62a463e..57e64e6 100644 --- a/view/base.py +++ b/view/pac.py @@ -17,7 +17,10 @@ # """ -Generic view base class. +Generic view base class, following the PAC (Presentation Abstraction Control) +pattern. + +Obsolete - do not use any more! $Id$ """ diff --git a/view/tests.py b/view/tests.py index eca47c7..453f41e 100755 --- a/view/tests.py +++ b/view/tests.py @@ -9,7 +9,7 @@ $Id$ import unittest, doctest from zope.testing.doctestunit import DocFileSuite -from cybertools.view.base import View +from cybertools.view.pac import View class Test(unittest.TestCase): diff --git a/view/web/base.py b/view/web/base.py index ff48839..7f91396 100644 --- a/view/web/base.py +++ b/view/web/base.py @@ -23,11 +23,11 @@ $Id$ """ from zope.cachedescriptors.property import Lazy -from cybertools.view import base +from cybertools.view import pac from cybertools.view.web.zpt.template import Template -class View(base.View): +class View(pac.View): """ A generic web-based view - not necessarily HTML-/browser-based. """