Changeset 1338 for WAeUP_SRP/trunk/skins/waeup_student/getTransferInfo.py
- Timestamp:
- 21 Jan 2007, 13:52:05 (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
WAeUP_SRP/trunk/skins/waeup_student/getTransferInfo.py
r1333 r1338 13 13 """ 14 14 import logging 15 logger = logging.getLogger('Student. Clearance.Info')15 logger = logging.getLogger('Student.Transfer.Info') 16 16 from DateTime import DateTime 17 17 … … 42 42 student = getattr(students_object,student_id) 43 43 payments = getattr(student,'payments').objectIds() 44 info['pa yed'] = False44 info['paid'] = False 45 45 for payment in payments: 46 46 if payment.startswith('transfer'): 47 info['pa yed'] = True47 info['paid'] = True 48 48 payments_obj = getattr(student,'payments') 49 49 payment_obj = getattr(payments_obj,payment) 50 50 info['pin'] = payment_obj.getContent().order_id 51 51 break 52 52 53 53 54 54 #student = getattr(students_object, student_id) … … 64 64 if len(results) > 0: 65 65 for r in results: 66 taken.append(r) 66 taken.append(r) 67 67 info['taken'] = taken 68 68 69 69 # for testing of transfer forms 70 info['pa yed'] = True71 info['pin'] = 'CLR-1-0123456789' 70 info['paid'] = True 71 info['pin'] = 'CLR-1-0123456789' 72 72 73 73
Note: See TracChangeset for help on using the changeset viewer.