diff options
| author | Chris McDonough <chrism@agendaless.com> | 2008-07-08 04:46:41 +0000 |
|---|---|---|
| committer | Chris McDonough <chrism@agendaless.com> | 2008-07-08 04:46:41 +0000 |
| commit | 21cae1bd56082f1bd3e8c66dd3e3b471b1b47fe5 (patch) | |
| tree | a306369912bd63c7ea8e94c393285aa5ae41b2f6 | |
| parent | 4bf7723f67b49cb14f0d82511a924adc1147505c (diff) | |
| download | pyramid-21cae1bd56082f1bd3e8c66dd3e3b471b1b47fe5.tar.gz pyramid-21cae1bd56082f1bd3e8c66dd3e3b471b1b47fe5.tar.bz2 pyramid-21cae1bd56082f1bd3e8c66dd3e3b471b1b47fe5.zip | |
It's BrowserView.
| -rw-r--r-- | repoze/bfg/sampleapp/app.py | 8 |
1 files 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) |
