Changeset 1613
- Timestamp:
- 21 Mar 2007, 07:18:53 (18 years ago)
- Location:
- WAeUP_SRP/trunk
- Files:
-
- 2 added
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
WAeUP_SRP/trunk/profiles/default/schemas/payment.xml
r1399 r1613 6 6 <field name="type_description" meta_type="CPS String Field" > 7 7 <property name="is_searchabletext">True</property> 8 </field> <field name="order_id" meta_type="CPS String Field"/>8 </field> 9 9 <field name="amount" meta_type="CPS String Field"/> 10 10 <field name="resp_pay_reference" meta_type="CPS String Field"/> -
WAeUP_SRP/trunk/skins/waeup_epayment/getPaymentsFolderInfo.py
r1568 r1613 53 53 else: 54 54 row['is_approvable'] = is_so and (review_state == "opened") 55 if so_object.type_description.startswith('School Fee'): 56 row['is_requeryable'] = (review_state == "opened") and info['review_state'] == 'cleared_and_validated' 57 else: 58 row['is_requeryable'] = is_so and (review_state == "opened") 55 59 if (review_state == "closed") and so_object.resp_code in ('SC','00','AP',): 56 60 row['confirmed'] = 'active' -
WAeUP_SRP/trunk/skins/waeup_epayment/payments_view.pt
r1431 r1613 34 34 </td> 35 35 <td> 36 <a tal:condition=" python:row['is_approvable']"36 <a tal:condition="row/is_approvable" 37 37 tal:attributes="href string:${context/absolute_url}/${row/id}/approve_epayment; 38 38 onclick python:'return window.confirm(\'%s\')' %(cpsmcat('Are you sure? You will not be able to undo the approval.'), ); 39 39 "> 40 40 [approve payment] 41 </a> 42 </td> 43 <td> 44 <a tal:condition="row/is_requeryable" 45 tal:attributes="href string:${context/absolute_url}/${row/id}/requery_payment; 46 onclick python:'return window.confirm(\'%s\')' %(cpsmcat('Are you sure? You will not be able to undo the approval.'), ); 47 "> 48 [requery payment] 41 49 </a> 42 50 </td> -
WAeUP_SRP/trunk/skins/waeup_student/delete_course_result.py
r1606 r1613 14 14 15 15 from Products.CMFCore.utils import getToolByName 16 from AccessControl import Unauthorized 17 16 18 here = context 17 19 from urllib import urlencode … … 30 32 real_ids.append(id) 31 33 if real_ids: 32 context.manage_delObjects(real_ids) 33 logger.info('%s deleted StudentCourseResult object %s for %s' % (member,id,context.getStudentId())) 34 message = 'psm_item(s)_deleted' 34 try: 35 context.manage_delObjects(real_ids) 36 logger.info('%s deleted StudentCourseResult object %s for %s' % (member,id,context.getStudentId())) 37 message = 'psm_item(s)_deleted' 38 except Unauthorized: 39 logger.info('%s has no permission to delete StudentCourseResult objects for %s' % (member,context.getStudentId())) 40 message = 'no item(s) deleted' 35 41 else: 36 42 message = 'psm_select_at_least_one_document'
Note: See TracChangeset for help on using the changeset viewer.