vendor/Five/1.2b-r20590

view browser/tests/pages.zcml @ 0:3673ed425f80

Vendor import of Five 1.2b+ (r20590)
author fguillaume
date Fri, 02 Dec 2005 20:25:42 +0000
parents
children
line source
1 <configure xmlns="http://namespaces.zope.org/zope"
2 xmlns:meta="http://namespaces.zope.org/meta"
3 xmlns:browser="http://namespaces.zope.org/browser"
4 xmlns:five="http://namespaces.zope.org/five">
6 <!-- make the zope2.Public permission work -->
7 <meta:redefinePermission from="zope2.Public" to="zope.Public" />
9 <!-- attribute page -->
10 <browser:page
11 for="Products.Five.tests.testing.simplecontent.ISimpleContent"
12 class=".pages.SimpleView"
13 attribute="eagle"
14 name="eagle.txt"
15 permission="zope2.ViewManagementScreens"
16 />
18 <browser:page
19 for="Products.Five.tests.testing.simplecontent.ISimpleContent"
20 class=".pages.SimpleView"
21 name="eagle.method"
22 permission="zope2.ViewManagementScreens"
23 allowed_attributes="eagle"
24 />
26 <!-- attribute page -->
27 <browser:pages
28 for="Products.Five.tests.testing.simplecontent.ISimpleContent"
29 class=".pages.SimpleView"
30 permission="zope2.ViewManagementScreens"
31 >
32 <browser:page
33 name="eagle-page.txt"
34 attribute="eagle"
35 />
36 <browser:page
37 name="mouse-page.txt"
38 attribute="mouse"
39 />
40 </browser:pages>
42 <!-- template/class page -->
43 <browser:page
44 for="Products.Five.tests.testing.simplecontent.ISimpleContent"
45 class=".pages.SimpleView"
46 template="falcon.pt"
47 name="falcon.html"
48 permission="zope2.ViewManagementScreens"
49 />
51 <!-- template page (with simple python expression) -->
52 <browser:page
53 for="Products.Five.tests.testing.simplecontent.ISimpleContent"
54 template="owl.pt"
55 name="owl.html"
56 permission="zope2.ViewManagementScreens"
57 />
59 <!-- template page which calls on context using python and path
60 expressions -->
61 <browser:page
62 for="Products.Five.tests.testing.simplecontent.ISimpleContent"
63 template="flamingo.pt"
64 name="flamingo.html"
65 permission="zope2.ViewManagementScreens"
66 />
68 <!-- template/class page which calls on context, view, views -->
69 <browser:page
70 for="Products.Five.tests.testing.simplecontent.ISimpleContent"
71 class=".pages.SimpleView"
72 template="condor.pt"
73 name="condor.html"
74 permission="zope2.ViewManagementScreens"
75 />
77 <!-- template page that defines a macro page -->
78 <browser:page
79 for="Products.Five.tests.testing.simplecontent.ISimpleContent"
80 template="birdmacro.pt"
81 name="bird.html"
82 permission="zope2.ViewManagementScreens"
83 />
85 <!-- template page that uses macro page -->
86 <browser:page
87 for="Products.Five.tests.testing.simplecontent.ISimpleContent"
88 template="seagull.pt"
89 name="seagull.html"
90 permission="zope2.ViewManagementScreens"
91 />
93 <!-- test TALES -->
94 <browser:page
95 for="Products.Five.tests.testing.simplecontent.ISimpleContent"
96 template="ostrich.pt"
97 name="ostrich.html"
98 permission="zope2.ViewManagementScreens"
99 />
101 <browser:page
102 for="Products.Five.tests.testing.simplecontent.ISimpleContent"
103 template="tales_traversal.pt"
104 name="tales_traversal.html"
105 permission="zope2.ViewManagementScreens"
106 />
108 <browser:page
109 for="Products.Five.tests.testing.simplecontent.ISimpleContent"
110 template="template_variables.pt"
111 name="template_variables.html"
112 permission="zope2.ViewManagementScreens"
113 />
115 <!-- template security -->
117 <browser:page
118 for="Products.Five.tests.testing.simplecontent.ISimpleContent"
119 template="security.pt"
120 name="security.html"
121 permission="zope2.View"
122 />
124 <!-- a publicly accessible page, attribute, template, template/class -->
126 <browser:page
127 for="Products.Five.tests.testing.simplecontent.ISimpleContent"
128 class=".pages.SimpleView"
129 attribute="eagle"
130 name="public_attribute_page"
131 permission="zope2.Public"
132 />
134 <browser:page
135 for="Products.Five.tests.testing.simplecontent.ISimpleContent"
136 template="owl.pt"
137 name="public_template_page"
138 permission="zope2.Public"
139 />
141 <browser:page
142 for="Products.Five.tests.testing.simplecontent.ISimpleContent"
143 class=".pages.SimpleView"
144 template="falcon.pt"
145 name="public_template_class_page"
146 permission="zope2.Public"
147 />
149 <browser:page
150 for="Products.Five.tests.testing.simplecontent.ISimpleContent"
151 class=".pages.SimpleView"
152 template="parakeet.pt"
153 name="parakeet.html"
154 permission="zope2.ViewManagementScreens"
155 />
157 <!-- pages from methods/functions/callables that don't have docstrings -->
158 <browser:pages
159 for="Products.Five.tests.testing.simplecontent.ISimpleContent"
160 class="Products.Five.browser.tests.pages.NoDocstringView"
161 permission="zope2.Public">
162 <browser:page
163 name="nodoc-method"
164 attribute="method"
165 />
166 <browser:page
167 name="nodoc-function"
168 attribute="function"
169 />
170 <browser:page
171 name="nodoc-object"
172 attribute="object"
173 />
174 </browser:pages>
176 <!-- five:pagesFromDirectory loads all .pt files in a directory as pages.
177 This is mainly used to load Zope2 skin templates so they can be used
178 in five skins and layers. -->
179 <five:pagesFromDirectory
180 for="Products.Five.tests.testing.simplecontent.ISimpleContent"
181 module="Products.Five.browser.tests"
182 directory="pages"
183 permission="zope2.Public"
184 />
186 <!-- browser:page directives with new style classes are ignored -->
188 <browser:page
189 for="Products.Five.tests.testing.simplecontent.ISimpleContent"
190 class=".pages.NewStyleClass"
191 name="new_style_class"
192 attribute="method"
193 permission="zope2.Public"
194 />
196 <!-- Verify that browser:view works, especially when no specific
197 view attribute is specified -->
199 <browser:view
200 name=""
201 for="Products.Five.tests.testing.simplecontent.ISimpleContent"
202 class=".pages.SimpleView"
203 permission="zope2.Public"
204 />
206 <!-- XXX this should really be in Five.form.tests -->
208 <!-- protected edit form for permission check -->
209 <browser:editform
210 schema="Products.Five.tests.testing.simplecontent.ISimpleContent"
211 name="protectededitform.html"
212 permission="zope2.ViewManagementScreens"
213 />
215 <!-- stuff that we'll override in overrides.zcml -->
216 <browser:page
217 for="Products.Five.tests.testing.simplecontent.ISimpleContent"
218 class=".pages.SimpleView"
219 attribute="eagle"
220 name="overridden_view"
221 permission="zope2.Public"
222 />
224 </configure>