@@ -23,14 +23,29 @@ views still works (the printed output is the aq_chain of the view):
...
@@ -23,14 +23,29 @@ views still works (the printed output is the aq_chain of the view):
>>> print browser.contents
>>> print browser.contents
[<Products.Five.metaclass.LegacyAttributes object at ...>, <Folder at /test_folder_1_>, <Application at >, <ZPublisher.BaseRequest.RequestContainer object at ...>]
[<Products.Five.metaclass.LegacyAttributes object at ...>, <Folder at /test_folder_1_>, <Application at >, <ZPublisher.BaseRequest.RequestContainer object at ...>]
Let's also make sure that calling __of__ on a view has the desired
Let's do some more manual tests with the view object. But first we
effect. First let's get a view:
must get it:
>>> from zope.component import getMultiAdapter
>>> from zope.component import getMultiAdapter
>>> from zope.publisher.browser import TestRequest
>>> from zope.publisher.browser import TestRequest