Changeset 1275

Show
Ignore:
Timestamp:
04/18/08 13:55:07 (8 months ago)
Author:
sgillies
Message:

Add test of views

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • pleiades.vocabulary/trunk/pleiades/vocabulary/browser/vocabularies_index.pt

    r1274 r1275  
    55      xmlns:metal="http://xml.zope.org/namespaces/metal" 
    66      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" 
    88      i18n:domain="plone"> 
    99 
     
    1111 
    1212  <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" 
    1414               condition="macro"> 
    1515      <metal:block use-macro="macro" /> 
     
    2121      create additional defines for each slot it fills. 
    2222    </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')" 
    2525            condition="js" 
    2626            repeat="item js"> 
     
    3131      </script> 
    3232    </tal:js> 
    33     <tal:block define="portal_type python:here.getPortalTypeName().lower().replace(' ', '_'); 
     33    <tal:block define="portal_type python:context.getPortalTypeName().lower().replace(' ', '_'); 
    3434                       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); 
    3636                       macro view_macros/js | nothing" 
    3737               condition="macro"> 
     
    4747      create additional defines for each slot it fills. 
    4848    </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')" 
    5151             condition="css" 
    5252             repeat="item css"> 
     
    5757      </style> 
    5858    </tal:css> 
    59     <tal:block define="portal_type python:here.getPortalTypeName().lower().replace(' ', '_'); 
     59    <tal:block define="portal_type python:context.getPortalTypeName().lower().replace(' ', '_'); 
    6060                       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); 
    6262                       macro view_macros/css | nothing" 
    6363               condition="macro"> 
     
    6969    <metal:fill fill-slot="main"> 
    7070      <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; 
    7373            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); 
    7575            header_macro view_macros/header | header_macro | base_macros/header; 
    7676            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; 
    7878            footer_macro view_macros/footer | footer_macro | base_macros/footer; 
    7979            errors python:request.get('errors', {})">