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

fixed 'zwei kleine Sachen'

File:
1 edited

Legend:

Unmodified
Added
Removed
  • WAeUP_SRP/trunk/skins/waeup_custom/folder_delete.py

    r486 r586  
    1414
    1515from Products.CMFCore.utils import getToolByName
     16here = context
     17if context.portal_type == "University":
     18    here = context.academics
    1619
    17 ti = getToolByName(context, 'portal_types').getTypeInfo(context.portal_type)
     20ti = getToolByName(here, 'portal_types').getTypeInfo(here.portal_type)
    1821meth_id = ti.queryMethodID('view', 'folder_contents')
    19 ret_url = context.absolute_url() + '/' + meth_id
     22ret_url = here.absolute_url() + '/' + meth_id
     23
    2024
    2125if ids:
     
    2327        # XXX has to be called from here since the workflow doesn't handle the
    2428        # deletion yet
    25         ob = getattr(context, id)
     29        ob = getattr(here, id)
    2630        from Products.CPSCore.EventServiceTool import getPublicEventService
    27         evtool = getPublicEventService(context)
     31        evtool = getPublicEventService(here)
    2832        evtool.notifyEvent('workflow_delete', ob, {})
    29     context.manage_delObjects(ids)
     33    here.manage_delObjects(ids)
    3034    message = 'portal_status_message=psm_item(s)_deleted'
    3135else:
Note: See TracChangeset for help on using the changeset viewer.