Changeset 586 for WAeUP_SRP/trunk/skins
- Timestamp:
- 28 Sep 2006, 22:10:21 (18 years ago)
- Location:
- WAeUP_SRP/trunk/skins
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
WAeUP_SRP/trunk/skins/waeup_academics/academics_index_view.pt
r558 r586 51 51 % (cpsmcat('button_select_all'), cpsmcat('button_deselect_all'))" 52 52 /> 53 <input type="submit" name="approve_checked:method"54 class="context" value="Approve" />55 <input type="submit" name="retract_checked:method"56 class="context" value="Retract" />57 53 <input type="submit" name="folder_delete:method" value="button_delete" 58 54 class="destructive" i18n:attributes="value" -
WAeUP_SRP/trunk/skins/waeup_academics/faculty_index_view.pt
r585 r586 58 58 % (cpsmcat('button_select_all'), cpsmcat('button_deselect_all'))" 59 59 /> 60 <input type="submit" name="approve_checked:method"61 class="context" value="Approve" />62 <input type="submit" name="retract_checked:method"63 class="context" value="Retract" />64 60 <input type="submit" name="folder_delete:method" value="button_delete" 65 61 class="destructive" i18n:attributes="value" -
WAeUP_SRP/trunk/skins/waeup_academics/getFacultiesInfo.py
r573 r586 32 32 fo = f.getObject() 33 33 fd = fo.getContent() 34 row['id'] = f .getId34 row['id'] = fo.getId() 35 35 row['title'] = fd.LongTitle() 36 36 row['url'] = fo.absolute_url() -
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: -
WAeUP_SRP/trunk/skins/waeup_default/id_rename.py
r486 r586 17 17 new_ids = [id.upper() for id in REQUEST['new_ids']] 18 18 19 context.manage_renameObjects(REQUEST['ids'], new_ids, REQUEST) 19 here = context 20 if context.portal_type == "University": 21 here = context.academics 22 20 23 21 return REQUEST.RESPONSE.redirect(context.absolute_url() + \ 22 ('/academics_contents?portal_status_message=%s' \ 24 here.manage_renameObjects(REQUEST['ids'], new_ids, REQUEST) 25 26 return REQUEST.RESPONSE.redirect(here.absolute_url() + \ 27 ('/academics_index?portal_status_message=%s' \ 23 28 % ('psm_item(s)_renamed',))) -
WAeUP_SRP/trunk/skins/waeup_default/id_rename_form.pt
r486 r586 12 12 <metal:main fill-slot="main"> 13 13 14 <div class="group" tal:condition=" here/folder_rename_items" >14 <div class="group" tal:condition="context/academics_rename_items" > 15 15 <form action="folder_rename" method="post" 16 16 tal:attributes="action string:${here_url}/id_rename"> 17 17 18 18 <table width="90%"> 19 <tr tal:repeat="item here/folder_rename_items">19 <tr tal:repeat="item context/academics_rename_items"> 20 20 <td align="left" valign="top" width="20%" nowrap="nowrap"> 21 21 <span tal:replace="structure item/iconHTML">Type Image</span>
Note: See TracChangeset for help on using the changeset viewer.