[Zope-Checkins] CVS: Zope3/lib/python/Zope/ComponentArchitecture/tests - TestViews.py:1.1.2.3.14.2 testDirectives.py:NONE
Jim Fulton
jim@zope.com
Thu, 30 May 2002 14:27:29 -0400
Update of /cvs-repository/Zope3/lib/python/Zope/ComponentArchitecture/tests
In directory cvs.zope.org:/tmp/cvs-serv20275/lib/python/Zope/ComponentArchitecture/tests
Modified Files:
Tag: Zope3InWonderland-branch
TestViews.py
Removed Files:
Tag: Zope3InWonderland-branch
testDirectives.py
Log Message:
Implemented browser:page directives for browser:view, browser:resource.
Implemented security assertions in view and resource directives.
Changed defaultView so you can omit a factory, which just sets the
default view name without defining a view.
Moved Browser and ComponentArchitecture directive support to App,
because of all of the dependencies on other packages.
=== Zope3/lib/python/Zope/ComponentArchitecture/tests/TestViews.py 1.1.2.3.14.1 => 1.1.2.3.14.2 ===
from Interface import Interface
-class IV(Interface): pass
+
+class IV(Interface):
+ def index(): pass
+
class IC(Interface): pass
class V1:
@@ -27,10 +30,18 @@
def __init__(self,context, request):
self._context = context
+ def index(self): return 'V1 here'
+
+ def action(self): return 'done'
+
class VZMI(V1):
- pass
+ def index(self): return 'ZMI here'
class R1:
+
+ def index(self): return 'R1 here'
+
+ def action(self): return 'R done'
def __init__(self, request):
pass
=== Removed File Zope3/lib/python/Zope/ComponentArchitecture/tests/testDirectives.py ===