Changeset 13793 for main/waeup.aaue/trunk/src
- Timestamp:
- 2 Apr 2016, 06:10:01 (9 years ago)
- Location:
- main/waeup.aaue/trunk/src/waeup/aaue
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.aaue/trunk/src/waeup/aaue/locales/en/LC_MESSAGES/waeup.kofa.po
r13656 r13793 59 59 "submit your application." 60 60 61 #: waeup/kofa/interfaces.py:71862 61 msgid "Next Matriculation Number Integer" 63 62 msgstr "Next PTP Matriculation Number Integer" 64 63 65 #: waeup/kofa/interfaces.py:71966 64 msgid "Integer used for constructing the next matriculation number" 67 65 msgstr "" … … 69 67 "students" 70 68 71 #: waeup/kofa/interfaces.py:72772 69 msgid "Next Matriculation Number Integer 2" 73 70 msgstr "Next Regular Matriculation Number Integer" 74 71 75 #: waeup/kofa/interfaces.py:73676 72 msgid "Next Matriculation Number Integer 3" 77 73 msgstr "Next Postgraduate Matriculation Number Integer" 78 74 79 #: waeup/kofa/interfaces.py:728 75 msgid "Next Matriculation Number Integer 4" 76 msgstr "Next Diploma Matriculation Number Integer" 77 80 78 msgid "2nd integer used for constructing the next matriculation number" 81 79 msgstr "" … … 83 81 "students" 84 82 85 #: waeup/kofa/interfaces.py:73786 83 msgid "3rd integer used for constructing the next matriculation number" 87 84 msgstr "" 88 85 "Integer used for constructing the next matriculation number of postgraduate " 86 "students" 87 88 msgid "4th integer used for constructing the next matriculation number" 89 msgstr "" 90 "Integer used for constructing the next matriculation number of diploma " 89 91 "students" 90 92 -
main/waeup.aaue/trunk/src/waeup/aaue/students/tests/test_utils.py
r13755 r13793 129 129 site['configuration'].next_matric_integer_2 = 1 130 130 site['configuration'].next_matric_integer_3 = 1 131 site['configuration'].next_matric_integer_4 = 1 131 132 self.student.matric_number = None 132 133 #msg, mnumber = utils.setMatricNumber(self.student) … … 165 166 self.assertEqual(self.student.matric_number, 'AAU/SPS/ABC/dep1/04/AGRB/00001') 166 167 self.assertEqual(site['configuration'].next_matric_integer_3, 2) 168 # Diploma Students get a matric number with leading 'IOS' 169 # and the dp counter which is next_matric_integer_3. 170 self.student['studycourse'].certificate.study_mode = 'dp_ft' 171 self.student.matric_number = None 172 msg, mnumber = utils.setMatricNumber(self.student) 173 self.assertEqual(self.student.matric_number, 'IOE/DIP/04/00001') 174 self.assertEqual(site['configuration'].next_matric_integer_4, 2) 167 175 # Foundation programme students don't get matric number. 168 176 self.student.matric_number = None -
main/waeup.aaue/trunk/src/waeup/aaue/students/utils.py
r13786 r13793 54 54 grok.getSite()['configuration'].next_matric_integer_3 += 1 55 55 return 56 elif student.current_mode in ('dp_ft',): 57 grok.getSite()['configuration'].next_matric_integer_4 += 1 58 return 56 59 grok.getSite()['configuration'].next_matric_integer_2 += 1 57 60 return … … 91 94 return None, "PTP/%s/%s/%s/%05d" % ( 92 95 faccode, depcode, year, next_integer) 96 if student.current_mode in ('dp_ft',): 97 next_integer = grok.getSite()['configuration'].next_matric_integer_4 98 if next_integer == 0: 99 return _('Matriculation number cannot be set.'), None 100 return None, "IOE/DIP/%s/%05d" % (year, next_integer) 93 101 next_integer = grok.getSite()['configuration'].next_matric_integer_2 94 102 if next_integer == 0:
Note: See TracChangeset for help on using the changeset viewer.