rearrange view package, preparing it for new base view classes

git-svn-id: svn://svn.cy55.de/Zope3/src/cybertools/trunk@3789 fd906abe-77d9-0310-91a1-e0d9ade77398
This commit is contained in:
helmutm 2010-03-28 08:31:01 +00:00
parent 36102042f8
commit 17c35c9c61
5 changed files with 22 additions and 6 deletions

View file

@ -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 <http://en.wikipedia.org/wiki/Presentation-abstraction-control>`_
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

3
view/browser/__init__.py Normal file
View file

@ -0,0 +1,3 @@
"""
$Id$
"""

View file

@ -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$
"""

View file

@ -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):

View file

@ -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.
"""