Changeset 586
- Timestamp:
- 28 Sep 2006, 22:10:21 (18 years ago)
- Location:
- WAeUP_SRP/trunk
- Files:
-
- 10 edited
Legend:
- Unmodified
- Added
- Removed
-
WAeUP_SRP/trunk/Widgets.py
r551 r586 187 187 return 0 188 188 else: 189 portal_type_query = {'query':['Faculty', 190 'Department', 191 'Course', 192 'Certificate', 193 'CertificateCourse',]} 189 194 widget_id = self.getWidgetId() 190 195 value = datastructure[widget_id].upper() … … 192 197 if len(value.split()) > 1: 193 198 err = 'Invalid Id (Id contains space(s)' 194 elif hasattr(self.aq_parent,value):195 err = 'An object with the Id %s already exists in th is context' % (value)199 elif self.portal_catalog(portal_type=portal_type_query,id=value): 200 err = 'An object with the Id %s already exists in the Academic section' % (value) 196 201 if err: 197 202 datastructure.setError(widget_id, err) -
WAeUP_SRP/trunk/profiles/default/layouts/department.xml
r551 r586 20 20 <widget name="Title" meta_type="String Widget"> 21 21 <property name="fields"> 22 <element value=" Title"/>22 <element value="title"/> 23 23 </property> 24 24 <property name="is_required">True</property> -
WAeUP_SRP/trunk/profiles/default/layouts/faculty.xml
r556 r586 20 20 <widget name="Title" meta_type="String Widget"> 21 21 <property name="fields"> 22 <element value=" Title"/>22 <element value="title"/> 23 23 </property> 24 24 <property name="is_required">True</property> -
WAeUP_SRP/trunk/profiles/default/types/Department.xml
r538 r586 34 34 <property name="cps_is_portlet">False</property> 35 35 <alias from="(Default)" to="academics_index"/> 36 <alias from="create_do" to="waeup_document_create_do"/> 36 37 <alias from="created" to="department_created"/> 37 38 <alias from="view" to="academics_index"/> -
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.