Changeset 11605


Ignore:
Timestamp:
29 Apr 2014, 08:18:59 (11 years ago)
Author:
Henrik Bettermann
Message:

Further restrictions for matric number generation.

Location:
main/waeup.aaue/trunk/src/waeup/aaue/students
Files:
3 edited

Legend:

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

    r11602 r11605  
    338338        # Login as student
    339339        self.browser.open(self.login_path)
    340         #IWorkflowState(self.student).setState('school fee paid')
     340        IWorkflowState(self.student).setState('school fee paid')
    341341        self.browser.open(self.login_path)
    342342        self.browser.getControl(name="form.login").value = self.student_id
  • main/waeup.aaue/trunk/src/waeup/aaue/students/tests/test_utils.py

    r11596 r11605  
    124124
    125125    def test_setMatricNumber(self):
     126        IWorkflowState(self.student).setState('school fee paid')
    126127        site = grok.getSite()
    127128        utils = getUtility(IStudentsUtils)
  • main/waeup.aaue/trunk/src/waeup/aaue/students/utils.py

    r11596 r11605  
    7878        depcode = student.depcode
    7979        year = unicode(student.entry_session)[2:]
    80         if student.current_mode in ('ug_pt', 'de_pt'):
     80        if student.current_mode in ('ug_pt', 'de_pt') \
     81            and student.state in (PAID, ) \
     82            and student.is_fresh:
    8183            return "PTP/%s/%s/%s/%05d" % (faccode, depcode, year, next_integer)
    8284        #if student.current_mode in ('pg_ft', 'pg_pt'):
Note: See TracChangeset for help on using the changeset viewer.