Changeset 337
- Timestamp:
- 18 Jul 2006, 13:49:01 (18 years ago)
- Location:
- WAeUP_SRP/trunk
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
WAeUP_SRP/trunk/profiles/default/layouts/certificate.xml
r332 r337 42 42 <property name="size_max">20</property> 43 43 </widget> 44 <widget name="department" meta_type="Select Widget">45 <property name="title">Department</property>46 <property name="fields">47 <element value="department"/>48 </property>49 <property name="is_required">True</property>50 <property name="label">Department</property>51 <property name="label_edit">Department</property>52 <property name="readonly_layout_modes"/>53 <property name="hidden_layout_modes"/>54 <property name="hidden_readonly_layout_modes"/>55 <property name="vocabulary">get_departments_voc</property>56 </widget>57 44 <widget name="end_level" meta_type="Select Widget"> 58 45 <property name="title">End Level</property> … … 66 53 <property name="hidden_readonly_layout_modes"/> 67 54 <property name="vocabulary">courselevel</property> 68 </widget>69 <widget name="faculty" meta_type="Select Widget">70 <property name="title">Faculty</property>71 <property name="fields">72 <element value="faculty"/>73 </property>74 <property name="is_required">True</property>75 <property name="label">Faculty</property>76 <property name="label_edit">Faculty</property>77 <property name="readonly_layout_modes"/>78 <property name="hidden_layout_modes"/>79 <property name="hidden_readonly_layout_modes"/>80 <property name="vocabulary">get_faculties_voc</property>81 </widget>82 <widget name="heading" meta_type="String Widget">83 <property name="title">Heading</property>84 <property name="fields">85 <element value="heading"/>86 </property>87 <property name="label">Title</property>88 <property name="label_edit">Title</property>89 <property name="readonly_layout_modes"/>90 <property name="hidden_layout_modes"/>91 <property name="hidden_readonly_layout_modes"/>92 </widget>93 <widget name="m_prefix" meta_type="String Widget">94 <property name="title">MPrefix</property>95 <property name="fields">96 <element value="m_prefix"/>97 </property>98 <property name="label">MPrefix</property>99 <property name="label_edit">MPrefix</property>100 <property name="readonly_layout_modes"/>101 <property name="hidden_layout_modes"/>102 <property name="hidden_readonly_layout_modes"/>103 55 </widget> 104 56 <widget name="max_load" meta_type="Int Widget"> … … 187 139 </row> 188 140 <row> 189 <cell name="faculty"/>190 </row>191 <row>192 <cell name="department"/>193 </row>194 <row>195 141 <cell name="start_level"/> 196 142 </row> … … 214 160 </row> 215 161 <row> 216 <cell name="m_prefix"/>217 </row>218 <row>219 162 <cell name="nr_years"/> 220 163 </row> -
WAeUP_SRP/trunk/skins/waeup_academics/academics_content_lib_info_detail_tab.pt
r334 r337 21 21 22 22 23 <thead >23 <thead tal:condition="nothing"> 24 24 <tr> 25 25 <td tal:condition="display_buttons"> </td> -
WAeUP_SRP/trunk/skins/waeup_custom/folder_delete.py
r333 r337 1 1 ## Script (Python) "folder_delete" 2 ##title=Delete objects from a folder 3 ##parameters= 4 REQUEST=context.REQUEST 5 ret_url = context.absolute_url() + '/academics_contents' 2 ##bind container=container 3 ##bind context=context 4 ##bind namespace= 5 ##bind script=script 6 ##bind subpath=traverse_subpath 7 ##parameters=ids=[], REQUEST=None 8 ##title= 9 ## 10 # $Id: folder_delete.py 30246 2005-12-02 20:10:18Z fguillaume $ 11 """ 12 FIXME: add docstring. 13 """ 6 14 7 if REQUEST.has_key( 'ids' ): 8 context.manage_delObjects( REQUEST['ids'] ) 9 qs = '?portal_status_message=Deleted.' 15 from Products.CMFCore.utils import getToolByName 10 16 17 ti = getToolByName(context, 'portal_types').getTypeInfo(context.portal_type) 18 meth_id = ti.queryMethodID('view', 'folder_contents') 19 ret_url = context.absolute_url() + '/' + meth_id 20 21 if ids: 22 for id in ids: 23 # XXX has to be called from here since the workflow doesn't handle the 24 # deletion yet 25 ob = getattr(context, id) 26 from Products.CPSCore.EventServiceTool import getPublicEventService 27 evtool = getPublicEventService(context) 28 evtool.notifyEvent('workflow_delete', ob, {}) 29 context.manage_delObjects(ids) 30 message = 'portal_status_message=psm_item(s)_deleted' 11 31 else: 12 qs = '?portal_status_message=Please+select+one+or+more+items+first.'32 message = 'portal_status_message=psm_select_at_least_one_document' 13 33 14 15 return REQUEST.RESPONSE.redirect( ret_url + qs)34 if REQUEST is not None: 35 return REQUEST.RESPONSE.redirect(ret_url + '?' + message)
Note: See TracChangeset for help on using the changeset viewer.