Ignore:
Timestamp:
5 May 2014, 14:31:46 (11 years ago)
Author:
Henrik Bettermann
Message:

constructMatricNumber now returns error message.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/waeup.aaue/trunk/src/waeup/aaue/students/utils.py

    r11605 r11620  
    8181            and student.state in (PAID, ) \
    8282            and student.is_fresh:
    83             return "PTP/%s/%s/%s/%05d" % (faccode, depcode, year, next_integer)
     83            return None, "PTP/%s/%s/%s/%05d" % (faccode, depcode, year, next_integer)
    8484        #if student.current_mode in ('pg_ft', 'pg_pt'):
    85         #    return "SPS/%s/%s/%s/%05d" % (faccode, depcode, year, next_integer)
     85        #    return None, "SPS/%s/%s/%s/%05d" % (faccode, depcode, year, next_integer)
    8686        #if student.current_mode in ('dp_ft', 'dp_pt'):
    87         #    return "DIP/%s/%s/%s/%05d" % (faccode, depcode, year, next_integer)
     87        #    return None, "DIP/%s/%s/%s/%05d" % (faccode, depcode, year, next_integer)
    8888        #if student.current_mode == 'found':
    89         #    return None
    90         #return "%s/%s/%s/%05d" % (faccode, depcode, year, next_integer)
    91         return None
     89        #    return _('Foundation programme students don\'t have matric number.'), None
     90        #return None, "%s/%s/%s/%05d" % (faccode, depcode, year, next_integer)
     91        return _('Matriculation number cannot be set.'), None
    9292
    9393    def getReturningData(self, student):
Note: See TracChangeset for help on using the changeset viewer.