[Zope3-checkins]
SVN: Zope3/trunk/src/zope/app/pagetemplate/tests/test_viewzpt.py
Use ztapi instead of defining view manually.
Stephan Richter
srichter at cosmos.phy.tufts.edu
Fri Sep 17 12:15:34 EDT 2004
Log message for revision 27568:
Use ztapi instead of defining view manually.
Remove `getPresentationSkin()` from stub request implementation.
Changed:
U Zope3/trunk/src/zope/app/pagetemplate/tests/test_viewzpt.py
-=-
Modified: Zope3/trunk/src/zope/app/pagetemplate/tests/test_viewzpt.py
===================================================================
--- Zope3/trunk/src/zope/app/pagetemplate/tests/test_viewzpt.py 2004-09-17 16:15:29 UTC (rev 27567)
+++ Zope3/trunk/src/zope/app/pagetemplate/tests/test_viewzpt.py 2004-09-17 16:15:33 UTC (rev 27568)
@@ -18,6 +18,7 @@
import unittest
from zope.app import zapi
+from zope.app.tests import ztapi
from zope.interface import Interface, implements
from zope.app.pagetemplate.viewpagetemplatefile import ViewPageTemplateFile
@@ -66,16 +67,11 @@
from zope.component.interfaces import IPresentationRequest
- zapi.getGlobalService(zapi.servicenames.Presentation).provideView(
- I1,
- name=the_view_name,
- type=IPresentationRequest,
- maker=ViewMaker)
+ ztapi.provideView(I1, IPresentationRequest, Interface,
+ the_view_name, ViewMaker)
class MyRequest(object):
implements(IPresentationRequest)
- def getPresentationSkin(self):
- return '' # default
request = MyRequest()
More information about the Zope3-Checkins
mailing list