- Timestamp:
- 21 Jan 2007, 22:55:34 (18 years ago)
- Location:
- WAeUP_SRP/trunk/skins/waeup_student
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
WAeUP_SRP/trunk/skins/waeup_student/getTransferInfo.py
r1338 r1339 68 68 69 69 # for testing of transfer forms 70 info['paid'] = True71 info['pin'] = 'CLR-1-0123456789'70 #info['paid'] = True 71 #info['pin'] = 'CLR-1-0123456789' 72 72 73 73 -
WAeUP_SRP/trunk/skins/waeup_student/inter_faculty_transfer_1.pt
r1338 r1339 35 35 </td> 36 36 </tr> 37 <tr><td valign="top">7.</td><td>Proposed Faculty/School:</td><td style="border-bottom-style:dotted; border-bottom-width:1px; border-bottom-color:black"> </td></tr> 38 <tr><td></td><td>Proposed Department (if applicable):</td><td style="border-bottom-style:dotted; border-bottom-width:1px; border-bottom-color:black"> </td></tr> 37 <tr><td>7.</td><td>Proposed Department:</td><td style="border-bottom-style:dotted; border-bottom-width:1px; border-bottom-color:black"> </td></tr> 39 38 <tr><td valign="top">8.</td><td>Reason(s) for Transfer (Tick)</td><td></td></tr> 40 39 <tr><td></td><td>(a) Personal Wish:</td><td>( )</td></tr> -
WAeUP_SRP/trunk/skins/waeup_student/request_transfer.py
r1338 r1339 14 14 import logging 15 15 from urllib import urlencode 16 logger = logging.getLogger(' Student.Transfer.Request')16 logger = logging.getLogger('EPayment.') 17 17 import DateTime 18 18 lt = context.portal_layouts … … 20 20 students = context.portal_url.getPortalObject().campus.students 21 21 22 mtool = context.portal_membership 23 member = mtool.getAuthenticatedMember() 24 member_id = str(member) 25 requested_id = context.getStudentId() 26 if requested_id and not context.isStaff() and member_id != requested_id: 27 logger.info('"%s", "accessed application object of", "%s"' % (member_id,requested_id)) 28 student_id = requested_id 29 elif context.isStaff(): 30 student_id = requested_id 31 else: 32 student_id = member_id 22 student_id = context.getStudentId() 33 23 if student_id is None: 34 24 return request.RESPONSE.redirect("%s/srp_anonymous_view" % context.portal_url()) … … 37 27 sbrain = context.students_catalog(id=student_id)[0] 38 28 payments = getattr(student,'payments').objectIds() 39 pa id = False29 payed = False 40 30 for payment in payments: 41 31 if payment.startswith('transfer'): 42 pa id = True32 payed = True 43 33 break 44 34 45 35 # for testing of transfer forms 46 paid = True36 #payed = True 47 37 48 if paid: 49 logger.info('"%s", "opened (paid) request transfer form of", "%s"' % (member_id,student_id)) 38 if payed: 50 39 return context.request_transfer_form(rendered = None, 51 40 psm = None, 52 pa id = True,41 payed = True, 53 42 ) 54 43 … … 105 94 return context.request_transfer_form(rendered = None, 106 95 psm = None, 107 pa id = True,96 payed = True, 108 97 ) 109 98
Note: See TracChangeset for help on using the changeset viewer.