[Zope3-checkins] SVN: Zope3/trunk/src/zope/component/tests/request.py The presentation service is gone.

Stephan Richter srichter at cosmos.phy.tufts.edu
Fri Sep 17 12:16:42 EDT 2004


Log message for revision 27599:
  
  The presentation service is gone.
  
  Remove `setPresentationSkin()` and `getPresentationSkin()` methods from
  request.
  
  


Changed:
  U   Zope3/trunk/src/zope/component/tests/request.py


-=-
Modified: Zope3/trunk/src/zope/component/tests/request.py
===================================================================
--- Zope3/trunk/src/zope/component/tests/request.py	2004-09-17 16:16:40 UTC (rev 27598)
+++ Zope3/trunk/src/zope/component/tests/request.py	2004-09-17 16:16:42 UTC (rev 27599)
@@ -19,10 +19,9 @@
 
 class Request(object):
 
-    def __init__(self, type, skin=''):
+    def __init__(self, type, skin=None):
         self._skin = skin
-        zope.interface.directlyProvides(self, type)
-
-    def getPresentationSkin(self):
-        return self._skin
-
+        if skin is None:
+            zope.interface.directlyProvides(self, type)
+        else:
+            zope.interface.directlyProvides(self, type, skin)



More information about the Zope3-Checkins mailing list