vendor/Five/1.2b-r20590

view browser/tests/template_variables.pt @ 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 View is a view: <tal:block
2 content="python:hasattr(view,'context') and hasattr(view, 'request')" />
3 Context is testoid: <tal:block content="python:context.id == 'testoid'" />
4 Contaxt.aq_parent is test_folder_1_: <tal:block
5 content="python:context.aq_parent.id =='test_folder_1_'" />
6 Container is context: <tal:block content="python:container is context" />
7 Here is context: <tal:block content="python:here is context"/>
8 Nothing is None: <tal:block content="python:nothing is None"/>
9 Default works: <tal:block replace="non_existent_var|default" />True
10 Root is the application: <tal:block
11 replace="python:repr(root).find('Application') != -1" />
12 Template is a template: <tal:block
13 replace="python:repr(template.aq_base).startswith('<ZopeTwoPageTemplateFile')" />
14 Traverse_subpath exists and is empty: <tal:block
15 replace="python:traverse_subpath == []" />
16 Request is a request: <tal:block
17 replace="python:getattr(request, 'RESPONSE', None) is not None" />
18 User is manager: <tal:block replace="python:str(user) == 'manager'" />
19 Options exist: <tal:block replace="python:options is not None" />
20 Attrs exist: <tal:block replace="python:attrs is not None" />
21 Repeat exists: <tal:block replace="python:repeat is not None" />
22 Loop exists: <tal:block replace="python:loop is not None" />
23 Modules exists: <tal:block replace="python:modules is not None" />