Changeset 1275
- Timestamp:
- 04/18/08 13:55:07 (8 months ago)
- Files:
-
- pleiades.vocabulary/trunk/pleiades/vocabulary/browser/interfaces.py (deleted)
- pleiades.vocabulary/trunk/pleiades/vocabulary/browser/vocabularies_index.pt (modified) (7 diffs)
- pleiades.vocabulary/trunk/pleiades/vocabulary/tests/test_doctests.py (added)
- pleiades.vocabulary/trunk/pleiades/vocabulary/tests/vocab-views.txt (added)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
pleiades.vocabulary/trunk/pleiades/vocabulary/browser/vocabularies_index.pt
r1274 r1275 5 5 xmlns:metal="http://xml.zope.org/namespaces/metal" 6 6 xmlns:i18n="http://xml.zope.org/namespaces/i18n" 7 metal:use-macro=" here/main_template/macros/master"7 metal:use-macro="context/main_template/macros/master" 8 8 i18n:domain="plone"> 9 9 … … 11 11 12 12 <metal:javascript_head fill-slot="javascript_head_slot"> 13 <tal:block define="macro here/archetypes_custom_js/macros/javascript_head | nothing"13 <tal:block define="macro context/archetypes_custom_js/macros/javascript_head | nothing" 14 14 condition="macro"> 15 15 <metal:block use-macro="macro" /> … … 21 21 create additional defines for each slot it fills. 22 22 </tal:comment> 23 <tal:js define="fields python: here.Schema().viewableFields(here);24 js python: here.getUniqueWidgetAttr(fields, 'helper_js')"23 <tal:js define="fields python:context.Schema().viewableFields(context); 24 js python:context.getUniqueWidgetAttr(fields, 'helper_js')" 25 25 condition="js" 26 26 repeat="item js"> … … 31 31 </script> 32 32 </tal:js> 33 <tal:block define="portal_type python: here.getPortalTypeName().lower().replace(' ', '_');33 <tal:block define="portal_type python:context.getPortalTypeName().lower().replace(' ', '_'); 34 34 view_template python:'%s_view' % portal_type; 35 view_macros python:path(' here/%s/macros|nothing' % view_template);35 view_macros python:path('context/%s/macros|nothing' % view_template); 36 36 macro view_macros/js | nothing" 37 37 condition="macro"> … … 47 47 create additional defines for each slot it fills. 48 48 </tal:comment> 49 <tal:css define="fields python: here.Schema().viewableFields(here);50 css python: here.getUniqueWidgetAttr(fields, 'helper_css')"49 <tal:css define="fields python:context.Schema().viewableFields(context); 50 css python:context.getUniqueWidgetAttr(fields, 'helper_css')" 51 51 condition="css" 52 52 repeat="item css"> … … 57 57 </style> 58 58 </tal:css> 59 <tal:block define="portal_type python: here.getPortalTypeName().lower().replace(' ', '_');59 <tal:block define="portal_type python:context.getPortalTypeName().lower().replace(' ', '_'); 60 60 view_template python:'%s_view' % portal_type; 61 view_macros python:path(' here/%s/macros|nothing' % view_template);61 view_macros python:path('context/%s/macros|nothing' % view_template); 62 62 macro view_macros/css | nothing" 63 63 condition="macro"> … … 69 69 <metal:fill fill-slot="main"> 70 70 <metal:main_macro define-macro="main" 71 tal:define="portal_type python: here.getPortalTypeName().lower().replace(' ', '_');72 base_macros here/base/macros;71 tal:define="portal_type python:context.getPortalTypeName().lower().replace(' ', '_'); 72 base_macros context/base/macros; 73 73 view_template python:'%s_view' % portal_type; 74 view_macros python:path(' here/%s/macros|nothing' % view_template);74 view_macros python:path('context/%s/macros|nothing' % view_template); 75 75 header_macro view_macros/header | header_macro | base_macros/header; 76 76 body_macro view_macros/body | body_macro | base_macros/body; 77 thesaurilisting_macro here/thesauri_macros/macros/thesaurilisting | folderlisting | base_macros/folderlisting;77 thesaurilisting_macro context/thesauri_macros/macros/thesaurilisting | folderlisting | base_macros/folderlisting; 78 78 footer_macro view_macros/footer | footer_macro | base_macros/footer; 79 79 errors python:request.get('errors', {})">
