Ignore:
Timestamp:
28 Sep 2006, 22:10:21 (18 years ago)
Author:
joachim
Message:

fixed 'zwei kleine Sachen'

Location:
WAeUP_SRP/trunk/skins/waeup_default
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • WAeUP_SRP/trunk/skins/waeup_default/id_rename.py

    r486 r586  
    1717new_ids = [id.upper() for id in REQUEST['new_ids']]
    1818
    19 context.manage_renameObjects(REQUEST['ids'], new_ids, REQUEST)
     19here = context
     20if context.portal_type == "University":
     21    here = context.academics
     22   
    2023
    21 return REQUEST.RESPONSE.redirect(context.absolute_url() + \
    22                                 ('/academics_contents?portal_status_message=%s' \
     24here.manage_renameObjects(REQUEST['ids'], new_ids, REQUEST)
     25
     26return REQUEST.RESPONSE.redirect(here.absolute_url() + \
     27                                ('/academics_index?portal_status_message=%s' \
    2328                                % ('psm_item(s)_renamed',)))
  • WAeUP_SRP/trunk/skins/waeup_default/id_rename_form.pt

    r486 r586  
    1212<metal:main fill-slot="main">
    1313
    14 <div class="group" tal:condition="here/folder_rename_items" >
     14<div class="group" tal:condition="context/academics_rename_items" >
    1515<form action="folder_rename" method="post"
    1616      tal:attributes="action string:${here_url}/id_rename">
    1717
    1818  <table width="90%">
    19     <tr tal:repeat="item here/folder_rename_items">
     19    <tr tal:repeat="item context/academics_rename_items">
    2020      <td align="left" valign="top" width="20%" nowrap="nowrap">
    2121        <span tal:replace="structure item/iconHTML">Type Image</span>
Note: See TracChangeset for help on using the changeset viewer.