[Zope-Checkins] CVS: Zope3/lib/python/Zope/Publisher/Browser/tests - TestViews.py:1.1.2.2.14.2 testAttributePublisher.py:1.1.2.12.14.2 testBrowserRequest.py:1.1.4.6.14.2
Jim Fulton
jim@zope.com
Sun, 2 Jun 2002 10:35:28 -0400
Update of /cvs-repository/Zope3/lib/python/Zope/Publisher/Browser/tests
In directory cvs.zope.org:/tmp/cvs-serv29793/lib/python/Zope/Publisher/Browser/tests
Modified Files:
Tag: Zope3InWonderland-branch
TestViews.py testAttributePublisher.py testBrowserRequest.py
Log Message:
- Added template attribute to allow views to be created from a
template source file.
- Added beginnings of a Zope debugger. This required seperating site
and server configuration.
- Added the ability to specify a config file package in the
zopeConfigure directive. Made "config.zcml" a default for the file
attribute in the include directive.
- Fixed mapply to unwrap proxied objects. This was necessary once
views became wrapped in proxies. We need to investigate why they
weren't being wrapped before.
- I updated enough system page templates and zcml directives so that:
- Zope now starts. :)
- The root folder contents listing can be viewed.
Many more templates and zcml files need to be updated to reflect the
way views are now handled.
=== Zope3/lib/python/Zope/Publisher/Browser/tests/TestViews.py 1.1.2.2.14.1 => 1.1.2.2.14.2 ===
from Interface import Interface
-from Zope.Publisher.Browser.IBrowserPublisher import IBrowserPublisher
+from Zope.Publisher.Browser.BrowserView import BrowserView
+from Zope.Publisher.Browser.IBrowserPresentation import IBrowserPresentation
class IC(Interface): pass
-class V1:
- __implements__ = IBrowserPublisher
+class V1(BrowserView): pass
- def __init__(self, context, request):
- self._context = context
-
-class VZMI(V1):
- pass
+class VZMI(V1): pass
class R1:
- __implements__ = IBrowserPublisher
+ __implements__ = IBrowserPresentation
def __init__(self, request): self.request = request
class RZMI(R1):
=== Zope3/lib/python/Zope/Publisher/Browser/tests/testAttributePublisher.py 1.1.2.12.14.1 => 1.1.2.12.14.2 ===
from Zope.Publisher.Browser.BrowserView import BrowserView
from Zope.Publisher.Browser.AttributePublisher import AttributePublisher
-from Zope.Publisher.Browser.IBrowserPublisher import IBrowserPublisher
from Interface.Verify import verifyClass
from Interface.Implements import instancesOfObjectImplements
=== Zope3/lib/python/Zope/Publisher/Browser/tests/testBrowserRequest.py 1.1.4.6.14.1 => 1.1.4.6.14.2 ===
from Zope.Publisher.Publish import publish
from Zope.Publisher.DefaultPublication import DefaultPublication
-from Zope.Publisher.Browser.IBrowserPublisher import IBrowserPublisher
+from Zope.Publisher.Browser.IBrowserPresentation import IBrowserPresentation
from StringIO import StringIO
@@ -111,7 +111,7 @@
r = self._createRequest()
- self.failUnless( r.getPresentationType() is IBrowserPublisher)
+ self.failUnless( r.getPresentationType() is IBrowserPresentation)
self.assertEqual( r.getPresentationSkin(), '')
r.setViewSkin( 'morefoo' )
self.assertEqual( r.getPresentationSkin(), 'morefoo')