- Timestamp:
- 12 Nov 2019, 22:16:57 (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/kofacustom.iuokada/trunk/src/kofacustom/iuokada/students/utils.py
r15780 r15802 16 16 ## Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 17 17 ## 18 import grok 18 19 from time import time 19 20 from zope.component import createObject, getUtility … … 185 186 payment.p_combi = combi 186 187 return None, payment 188 189 def constructMatricNumber(self, student): 190 """Fetch the matric number counter which fits the student and 191 construct the new matric number of the student. 192 """ 193 next_integer = grok.getSite()['configuration'].next_matric_integer 194 if next_integer == 0: 195 return _('Matriculation number cannot be set.'), None 196 year = unicode(student.entry_session)[2:] 197 return None, "%s/%06d" % (year, next_integer)
Note: See TracChangeset for help on using the changeset viewer.