Ignore:
Timestamp:
27 Nov 2012, 18:56:08 (12 years ago)
Author:
Henrik Bettermann
Message:

Extend webservice and return reg_number too.

Location:
main/waeup.kofa/trunk/src/waeup/kofa/students
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • main/waeup.kofa/trunk/src/waeup/kofa/students/payments.py

    r9506 r9733  
    158158
    159159    @property
    160     def reg_or_matric_number(self):
     160    def matric_number(self):
    161161        "Matric number or reg number of payee"
    162162        return self.context.student.matric_number
     163
     164    @property
     165    def reg_number(self):
     166        "Reg number or reg number of payee"
     167        return self.context.student.reg_number
    163168
    164169    @property
  • main/waeup.kofa/trunk/src/waeup/kofa/students/tests/test_browser.py

    r9716 r9733  
    26632663            'FULL_NAME=Anna Tester&FACULTY=fac1&DEPARTMENT=dep1'
    26642664            '&PAYMENT_ITEM=My Certificate&PAYMENT_CATEGORY=School Fee'
    2665             '&ACADEMIC_SESSION=2004/2005&MATRIC_NUMBER=234&FEE_AMOUNT=0.0')
     2665            '&ACADEMIC_SESSION=2004/2005&MATRIC_NUMBER=234&REG_NUMBER=123'
     2666            '&FEE_AMOUNT=0.0')
    26662667        self.browser.open('http://localhost/app/paymentrequest?NONSENSE=nonsense')
    26672668        self.assertEqual(self.browser.contents, '-1')
Note: See TracChangeset for help on using the changeset viewer.