[Zope3-checkins]
SVN: Zope3/branches/srichter-blow-services/src/zope/app/ Finally,
all tests pass that do not require backward-compatibility!
Stephan Richter
srichter at cosmos.phy.tufts.edu
Thu Jan 13 10:59:40 EST 2005
Log message for revision 28824:
Finally, all tests pass that do not require backward-compatibility!
Yipee!
There are a couple of tasks left before the merge:
1. Write tests for zope.app.component.browser
2. Provide BBB for the changes in zope.app.component.
Changed:
U Zope3/branches/srichter-blow-services/src/zope/app/publisher/xmlrpc/tests/test_directives.py
U Zope3/branches/srichter-blow-services/src/zope/app/zptpage/zptpage.py
-=-
Modified: Zope3/branches/srichter-blow-services/src/zope/app/publisher/xmlrpc/tests/test_directives.py
===================================================================
--- Zope3/branches/srichter-blow-services/src/zope/app/publisher/xmlrpc/tests/test_directives.py 2005-01-13 15:51:50 UTC (rev 28823)
+++ Zope3/branches/srichter-blow-services/src/zope/app/publisher/xmlrpc/tests/test_directives.py 2005-01-13 15:59:40 UTC (rev 28824)
@@ -45,8 +45,8 @@
self.assertEqual(
zapi.queryMultiAdapter((ob, request), name='test'), None)
xmlconfig.file("xmlrpc.zcml", xmlrpc.tests)
- self.assertEqual(
- zapi.queryMultiAdapter((ob, request), name='test').__class__, V1)
+ view = zapi.queryMultiAdapter((ob, request), name='test')
+ self.assert_(V1 in view.__class__.__bases__)
def testInterfaceProtectedView(self):
xmlconfig.file("xmlrpc.zcml", xmlrpc.tests)
Modified: Zope3/branches/srichter-blow-services/src/zope/app/zptpage/zptpage.py
===================================================================
--- Zope3/branches/srichter-blow-services/src/zope/app/zptpage/zptpage.py 2005-01-13 15:51:50 UTC (rev 28823)
+++ Zope3/branches/srichter-blow-services/src/zope/app/zptpage/zptpage.py 2005-01-13 15:59:40 UTC (rev 28824)
@@ -152,7 +152,8 @@
page.setSource(data.decode('UTF-8'), content_type or 'text/html')
return page
-class ZPTSourceView(object):
+from zope.app.publisher.browser import BrowserView
+class ZPTSourceView(BrowserView):
def __str__(self):
return self.context.getSource()
More information about the Zope3-Checkins
mailing list