Changeset 1283
- Timestamp:
- 12 Jan 2007, 13:14:45 (18 years ago)
- Location:
- WAeUP_SRP/trunk
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
WAeUP_SRP/trunk/profiles/default/layouts/student_schoolfee.xml
r1274 r1283 4 4 <property name="layout_edit_method"></property> 5 5 <property name="layout_view_method"></property> 6 <property name="style_prefix">layout_ waeup_</property>6 <property name="style_prefix">layout_application_</property> 7 7 <property name="flexible_widgets"/> 8 8 <property name="validate_values_expr"></property> -
WAeUP_SRP/trunk/skins/waeup_epayment/getPaymentsFolderInfo.py
r1238 r1283 24 24 s_brain = context.students_catalog(id = student_id)[0] 25 25 payments = [] 26 #from Products.zdb import set_trace;set_trace() 26 27 for o_id in context.objectIds(): 27 28 d = {} … … 34 35 d['title'] = "no Title" 35 36 payments.append(d) 36 #from Products.zdb import set_trace;set_trace()37 37 info = {} 38 38 is_so = info['is_so'] = context.isSectionOfficer() -
WAeUP_SRP/trunk/skins/waeup_epayment/pay_by_sc.py
r1274 r1283 22 22 student_id = context.getStudentId() 23 23 if student_id is None: 24 return context.REQUEST.RESPONSE.redirect("%s/srp_anonymous_view" % context.portal_url())24 return request.RESPONSE.redirect("%s/srp_anonymous_view" % context.portal_url()) 25 25 26 26 student = getattr(students,student_id) 27 27 sbrain = context.students_catalog(id=student_id)[0] 28 28 amount,description = context.getSchoolFee(sbrain.faculty) 29 validate = request.has_key("cpsdocument_edit_button") 29 res = context.portal_catalog(portal_type="Certificate", 30 id = sbrain.course) 31 if not res: 32 logger.info('"%s","certificate not found", "%s"' % (student_id,course)) 33 prefix = "" 34 else: 35 prefix = res[0].getObject().getContent().school_fee_code 36 if not prefix or prefix == 'none': 37 prefix = res[0].getPath().split('/')[-4] 38 39 validate = request.has_key("cpsdocument_create_button") 30 40 res,psm,ds = lt.renderLayout(layout_id= 'student_schoolfee', 31 41 schema_id= 'epayment', 32 42 context=context, 33 mapping=validate and REQUEST,43 mapping=validate and request, 34 44 ob={}, 35 45 layout_mode="create", … … 61 71 else: 62 72 payments = getattr(student,'payments') 73 #from Products.zdb import set_trace; set_trace() 63 74 info = {} 64 order_id = info['order_id'] = ds.get('payment_id')75 order_id = ds.get('pin_n') 65 76 p_id = "p%s" % order_id 66 77 now = DateTime.DateTime() 67 78 info['date'] = now 68 info['type_code'] = "schoolfee_%s" 69 info['type_code'] = 'description' 70 info['amount'] = amount 79 info['amount'] = "n/a" 80 pin = info['order_id'] = ds.get('pin') 81 info['type_code'] = "schoolfee_%s" % pin 82 info['type_description'] = 'Schoolfee SC %s' % pin 71 83 payments.invokeFactory('Payment', p_id) 72 84 payment = getattr(payments,p_id) 73 #from Products.zdb import set_trace;set_trace() 85 wftool = context.portal_workflow 86 wftool.doActionFor(payment,'open') 74 87 payment.getContent().edit(mapping=info) 75 url = "%s/payments/%s" % (student.absolute_url(),p_id) 88 wftool.doActionFor(payment,'close') 89 wftool.doActionFor(student,'enter_school_fee_pin') 90 url = "%s/payments" % (student.absolute_url()) 76 91 request.RESPONSE.redirect(url) 77 92 -
WAeUP_SRP/trunk/skins/waeup_student/student_index.py
r1243 r1283 26 26 elif context.portal_type == 'StudentClearance': 27 27 return context.clearance_view() 28 elif context.portal_type == 'PaymentsFolder': 29 return context.payments_view() 28 30 elif context.portal_type == 'Student': 29 31 return redirect("%s/student_view" % context.absolute_url())
Note: See TracChangeset for help on using the changeset viewer.