From e17c8d815136218d7dd07e21cf78f4104d773d48 Mon Sep 17 00:00:00 2001 From: Chris McDonough Date: Mon, 4 Aug 2008 07:38:58 +0000 Subject: - Add a ``request_type`` attribute to the available attributes of a ``bfg:view`` configure.zcml element. This attribute will have a value which is a dotted Python path, pointing at an interface. If the request object implements this interface when the view lookup is performed, the appropriate view will be called. - Remove "template only" views. These were just confusing and were never documented. --- repoze/bfg/tests/fixtureapp/configure.zcml | 7 ++++--- repoze/bfg/tests/fixtureapp/views.py | 5 +++++ 2 files changed, 9 insertions(+), 3 deletions(-) (limited to 'repoze/bfg/tests/fixtureapp') diff --git a/repoze/bfg/tests/fixtureapp/configure.zcml b/repoze/bfg/tests/fixtureapp/configure.zcml index 265d69511..dfedda7bb 100644 --- a/repoze/bfg/tests/fixtureapp/configure.zcml +++ b/repoze/bfg/tests/fixtureapp/configure.zcml @@ -5,16 +5,17 @@ diff --git a/repoze/bfg/tests/fixtureapp/views.py b/repoze/bfg/tests/fixtureapp/views.py index 2babbc59c..ccf0e4811 100644 --- a/repoze/bfg/tests/fixtureapp/views.py +++ b/repoze/bfg/tests/fixtureapp/views.py @@ -1,3 +1,8 @@ +from zope.interface import Interface + def fixture_view(context, request): return None +class IDummy(Interface): + pass + -- cgit v1.2.3