Changeset 863

Show
Ignore:
Timestamp:
05/07/07 04:53:09
Author:
piv
Message:

fixed bug with importing restricted code in template

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • qSiloGroup/trunk/HISTORY.txt

    r861 r863  
     10.3.1 
     2 
     3  * fixed bug in templates with using path expression for importing allowed python module utils.py:  
     4      changed from path to python expression 
     5 
    160.3.0 
    27 
  • qSiloGroup/trunk/skins/qSiloGroup/portlet_navigation.pt

    r861 r863  
    66       i18n:domain="plone" 
    77       tal:omit-tag="" 
    8        tal:define="utils nocall:modules/Products/qSiloGroup/utils
     8       tal:define="utils python:modules['Products.qSiloGroup.utils']
    99                   silo python:utils.getCurrentFolder(context); 
    1010                   is_portal python:utils.isPortalOrPortalDefaultPage(context); 
    1111                   default_page python:utils.getDefaultPage(silo); 
    1212                   silo_list here/getSiloData"> 
    13     <dl class="portlet" id="portlet-navigation-tree"> 
     13  <dl class="portlet" id="portlet-navigation-tree"> 
    1414    <dt class="portletHeader"> 
    15         <tal:title content="python:test(not is_portal, silo.title_or_id(), 'Navigation')" /> 
     15      <tal:title content="python:test(not is_portal, silo.title_or_id(), 'Navigation')" /> 
    1616    </dt> 
    1717 
    1818    <dd class="portletItem"> 
    19         <ul class="portletNavigationTree navTreeLevel0"> 
    20             <tal:navitem repeat="item silo_list"> 
    21               <li class="navTreeItem visualNoMarker" 
    22                   tal:define="item_id item/id; 
    23                               item_title item/title;" 
    24                   tal:condition="python:item_id and item_id != default_page and item_title"> 
    25                 <div> 
    26                   <a tal:condition="item_title" 
    27                      tal:attributes="href python:test(item['link'], item['path'], silo.absolute_url()+'/'+item['path'])" 
    28                      tal:content="item_title|nothing"> 
    29                      Item Title</a> 
    30                 </div> 
    31               </li> 
    32             </tal:navitem> 
    33         </ul> 
     19      <ul class="portletNavigationTree navTreeLevel0"> 
     20        <tal:navitem repeat="item silo_list"> 
     21          <li class="navTreeItem visualNoMarker" 
     22              tal:define="item_id item/id; 
     23                          item_title item/title;" 
     24              tal:condition="python:item_id and item_id != default_page and item_title"> 
     25            <div> 
     26              <a tal:condition="item_title" 
     27                 tal:attributes="href python:test(item['link'], item['path'], silo.absolute_url()+'/'+item['path'])" 
     28                 tal:content="item_title|nothing"> 
     29                Item Title</a> 
     30            </div> 
     31          </li> 
     32        </tal:navitem> 
     33      </ul> 
    3434    </dd> 
    3535    <dd class="portletFooter even" 
    3636        tal:condition="python:checkPermission('Manage Portal', silo)"> 
    37         <span> 
    38             <a tal:attributes="href string:${silo/absolute_url}/folder_contents;"> 
    39                 Contents</a> &nbsp;|&nbsp; 
    40             <a tal:attributes="href string:${silo/absolute_url}/silo_navigation_form;"> 
    41                 Edit Nav</a> 
    42         </span> 
    43     </dd> 
    44 </dl> 
     37      <span> 
     38        <a tal:attributes="href string:${silo/absolute_url}/folder_contents;"> 
     39          Contents</a> &nbsp;|&nbsp; 
     40        <a tal:attributes="href string:${silo/absolute_url}/silo_navigation_form;"> 
     41          Edit Nav</a> 
     42      </span> 
     43    </dd> 
     44  </dl> 
    4545 
    4646</div> 
  • qSiloGroup/trunk/skins/qSiloGroup/silositemap_view.pt

    r861 r863  
    88<div metal:fill-slot="main"> 
    99    <tal:main-macro metal:define-macro="main"  
    10            tal:define="utils nocall:modules/Products/qSiloGroup/utils
     10           tal:define="utils python:modules['Products.qSiloGroup.utils']
    1111                       silo python:utils.getCurrentFolder(context); 
    1212                       default_page python:utils.getDefaultPage(silo); 
  • qSiloGroup/trunk/version.txt

    r861 r863  
    1 0.3.0 
     10.3.1