Changeset 586 for WAeUP_SRP/trunk/skins/waeup_custom
- Timestamp:
- 28 Sep 2006, 22:10:21 (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
WAeUP_SRP/trunk/skins/waeup_custom/folder_delete.py
r486 r586 14 14 15 15 from Products.CMFCore.utils import getToolByName 16 here = context 17 if context.portal_type == "University": 18 here = context.academics 16 19 17 ti = getToolByName( context, 'portal_types').getTypeInfo(context.portal_type)20 ti = getToolByName(here, 'portal_types').getTypeInfo(here.portal_type) 18 21 meth_id = ti.queryMethodID('view', 'folder_contents') 19 ret_url = context.absolute_url() + '/' + meth_id 22 ret_url = here.absolute_url() + '/' + meth_id 23 20 24 21 25 if ids: … … 23 27 # XXX has to be called from here since the workflow doesn't handle the 24 28 # deletion yet 25 ob = getattr( context, id)29 ob = getattr(here, id) 26 30 from Products.CPSCore.EventServiceTool import getPublicEventService 27 evtool = getPublicEventService( context)31 evtool = getPublicEventService(here) 28 32 evtool.notifyEvent('workflow_delete', ob, {}) 29 context.manage_delObjects(ids)33 here.manage_delObjects(ids) 30 34 message = 'portal_status_message=psm_item(s)_deleted' 31 35 else:
Note: See TracChangeset for help on using the changeset viewer.