From 4de1d072bbc853e0bcd2e887a36bba6d4d412dbb Mon Sep 17 00:00:00 2001 From: Chris McDonough Date: Thu, 17 Jul 2008 16:02:50 +0000 Subject: Be consistent about naming given docs. --- repoze/bfg/tests/test_view.py | 6 +++--- repoze/bfg/view.py | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/repoze/bfg/tests/test_view.py b/repoze/bfg/tests/test_view.py index b6982f431..a78fe514a 100644 --- a/repoze/bfg/tests/test_view.py +++ b/repoze/bfg/tests/test_view.py @@ -19,10 +19,10 @@ class Base(PlacelessSetup): here = os.path.abspath(os.path.dirname(__file__)) return os.path.join(here, 'fixtures', name) -class ViewTests(unittest.TestCase): +class ViewFactoryTests(unittest.TestCase): def _getTargetClass(self): - from repoze.bfg.view import View - return View + from repoze.bfg.view import ViewFactory + return ViewFactory def _makeOne(self, *arg, **kw): klass = self._getTargetClass() diff --git a/repoze/bfg/view.py b/repoze/bfg/view.py index 5d5750cea..6a7fccdcc 100644 --- a/repoze/bfg/view.py +++ b/repoze/bfg/view.py @@ -4,8 +4,8 @@ from zope.interface import classProvides from repoze.bfg.interfaces import IView from repoze.bfg.interfaces import IViewFactory -class View(object): - """ Convenience base class for user-defined views (just accepts +class ViewFactory(object): + """ Convenience base class for user-defined view factories (just accepts context and request)""" implements(IView) classProvides(IViewFactory) -- cgit v1.2.3