Changeset 13871 for main/waeup.kofa/trunk/src/waeup/kofa/students
- Timestamp:
- 31 May 2016, 17:57:03 (8 years ago)
- Location:
- main/waeup.kofa/trunk/src/waeup/kofa/students
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.kofa/trunk/src/waeup/kofa/students/batching.py
r13024 r13871 45 45 IStudentStudyLevel, ICourseTicketImport, 46 46 IStudentOnlinePayment, IStudentVerdictUpdate) 47 from waeup.kofa.payments.interfaces import IPayer 47 48 from waeup.kofa.students.workflow import ( 48 49 IMPORTABLE_STATES, IMPORTABLE_TRANSITIONS, … … 735 736 736 737 class StudentOnlinePaymentProcessor(StudentProcessorBase): 737 """The Course Ticket Processor imports student payment tickets. The738 tickets are located in the ``payments`` subfolder of the student738 """The Student Online Payment Processor imports student payment tickets. 739 The tickets are located in the ``payments`` subfolder of the student 739 740 container. The only additional locator is `p_id`, the object id. 740 741 … … 759 760 760 761 additional_fields = ['p_id'] 762 763 @property 764 def available_fields(self): 765 af = super( 766 StudentOnlinePaymentProcessor, self).available_fields 767 af.remove('display_item') 768 return af 761 769 762 770 def checkHeaders(self, headerfields, mode='ignore'): … … 875 883 results = list(cat.searchResults(p_id=(p_id, p_id))) 876 884 if len(results) > 0: 877 sids = [ payment.student.student_id for payment in results]885 sids = [IPayer(payment).id for payment in results] 878 886 sids_string = '' 879 887 for id in sids: -
main/waeup.kofa/trunk/src/waeup/kofa/students/export.py
r13766 r13871 382 382 sorted(iface_names( 383 383 IStudentOnlinePayment, exclude_attribs=False, 384 omit=['display_item', 'certificate' ]))) + (384 omit=['display_item', 'certificate', 'student']))) + ( 385 385 'student_id','state','current_session') 386 386 title = _(u'Student Payments') … … 430 430 sorted(iface_names( 431 431 IStudentOnlinePayment, exclude_attribs=False, 432 omit=['display_item', 'certificate' ]))) + (432 omit=['display_item', 'certificate', 'student']))) + ( 433 433 'student_id','matric_number','reg_number', 434 434 'firstname', 'middlename', 'lastname', -
main/waeup.kofa/trunk/src/waeup/kofa/students/interfaces.py
r13736 r13871 773 773 774 774 certificate = Attribute('Certificate to determine the correct p_level value') 775 student = Attribute('Student') 775 776 776 777 p_current = schema.Bool( … … 785 786 required = False, 786 787 ) 788 789 def redeemTicket(): 790 """Either create an appropriate access code or trigger an action 791 directly. 792 """ 787 793 788 794 def doAfterStudentPayment():
Note: See TracChangeset for help on using the changeset viewer.