[Zope3-checkins] SVN: Zope3/branches/philikon-simplify-skinning/src/zope/app/publisher/browser/tests/ Remove use of browser:layer in test.

Philipp von Weitershausen philikon at philikon.de
Tue Feb 21 10:13:39 EST 2006


Log message for revision 41731:
  Remove use of browser:layer in test.
  

Changed:
  U   Zope3/branches/philikon-simplify-skinning/src/zope/app/publisher/browser/tests/addmenuitems.zcml
  U   Zope3/branches/philikon-simplify-skinning/src/zope/app/publisher/browser/tests/test_addMenuItem.py

-=-
Modified: Zope3/branches/philikon-simplify-skinning/src/zope/app/publisher/browser/tests/addmenuitems.zcml
===================================================================
--- Zope3/branches/philikon-simplify-skinning/src/zope/app/publisher/browser/tests/addmenuitems.zcml	2006-02-21 15:03:38 UTC (rev 41730)
+++ Zope3/branches/philikon-simplify-skinning/src/zope/app/publisher/browser/tests/addmenuitems.zcml	2006-02-21 15:13:39 UTC (rev 41731)
@@ -3,14 +3,12 @@
     xmlns:browser="http://namespaces.zope.org/browser"
     i18n_domain="zope">
 
-  <browser:layer name="center"/>
-
   <browser:addform
       schema=".tests.test_menudirectives.I1"
       name="add2.html"
       content_factory=".tests.test_menudirectives.C1"
       permission="zope.Public"
-      layer="center"
+      layer="zope.app.publisher.browser.tests.test_addMenuItem.ILayerStub"
       />
 
   <browser:addMenuItem
@@ -18,7 +16,7 @@
       title="Add menu Item"
       view="add2.html"
       permission="zope.Public" 
-      layer="center"
+      layer="zope.app.publisher.browser.tests.test_addMenuItem.ILayerStub"
       />
 
 </configure>

Modified: Zope3/branches/philikon-simplify-skinning/src/zope/app/publisher/browser/tests/test_addMenuItem.py
===================================================================
--- Zope3/branches/philikon-simplify-skinning/src/zope/app/publisher/browser/tests/test_addMenuItem.py	2006-02-21 15:03:38 UTC (rev 41730)
+++ Zope3/branches/philikon-simplify-skinning/src/zope/app/publisher/browser/tests/test_addMenuItem.py	2006-02-21 15:13:39 UTC (rev 41731)
@@ -64,6 +64,7 @@
 import pprint
 import cStringIO
 from zope.interface import Interface
+from zope.publisher.interfaces.browser import IBrowserRequest
 from zope.app.publisher.browser.menumeta import addMenuItem
 
 atre = re.compile(' at [0-9a-fA-Fx]+')
@@ -74,7 +75,7 @@
 class X(object):
     pass
 
-class ILayerStub(Interface):
+class ILayerStub(IBrowserRequest):
     pass
 
 class MenuStub(object):



More information about the Zope3-Checkins mailing list