From 21cae1bd56082f1bd3e8c66dd3e3b471b1b47fe5 Mon Sep 17 00:00:00 2001 From: Chris McDonough Date: Tue, 8 Jul 2008 04:46:41 +0000 Subject: It's BrowserView. --- repoze/bfg/sampleapp/app.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/repoze/bfg/sampleapp/app.py b/repoze/bfg/sampleapp/app.py index 10b43d384..9a746d1f1 100644 --- a/repoze/bfg/sampleapp/app.py +++ b/repoze/bfg/sampleapp/app.py @@ -1,18 +1,18 @@ -from repoze.bfg.template import View +from repoze.bfg.template import BrowserView from webob import Response -class BlogDefaultView(View): +class BlogDefaultView(BrowserView): def getInfo(self): return {'greeting':'Hello, I\'m the default view', 'id':self.context.id} -class BlogWooHooView(View): +class BlogWooHooView(BrowserView): def getInfo(self): return {'greeting':'Woo hoo, I\'m another view' , 'id':self.context.id} -class DefaultView(View): +class DefaultView(BrowserView): def __call__(self): return Response('Default page, context is %s' % self.context) -- cgit v1.2.3