Changeset 14509


Ignore:
Timestamp:
6 Feb 2017, 08:18:22 (8 years ago)
Author:
Henrik Bettermann
Message:

Temporarily disable ug_ft course registration.

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

Legend:

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

    r14506 r14509  
    128128        #if not fac_dep_paid:
    129129        #    return _("Please pay faculty and departmental dues first.")
     130
     131
     132        ######################################################
     133        # Temporarily disable ug_ft course registration
     134        if self.student.current_mode == 'ug_ft':
     135            return _("Please check back later, course registration is not yet available.")
     136        ######################################################
     137
     138
     139
    130140        restitution_paid = True
    131141        if self.student.entry_session < 2016 \
  • main/waeup.aaue/trunk/src/waeup/aaue/students/tests/test_browser.py

    r14501 r14509  
    624624        self.assertFalse('<td>67</td>' in self.browser.contents)
    625625        self.browser.getControl("Register course list").click()
     626
     627        ######################################################
     628        # Temporarily disabled ug_ft course registration
     629        self.assertTrue('Please check back later'
     630            in self.browser.contents)
     631        return
     632        ######################################################
     633
     634
    626635        self.assertTrue('Course registration has ended. Please pay' in self.browser.contents)
    627636        self.student['payments'].values()[1].approve()
     
    959968        #self.browser.open(self.studycourse_path + '/100/edit')
    960969        #self.browser.getControl("Register course list").click()
     970
     971        ######################################################
     972        # Temporarily disabled ug_ft course registration
     973        self.assertTrue('Please check back later'
     974            in self.browser.contents)
     975        ######################################################
     976
    961977        self.assertTrue('Course list has been registered'
    962978            in self.browser.contents)
     
    976992        self.browser.getLink("Edit course list").click()
    977993        self.browser.getControl("Register course list").click()
     994
     995        ######################################################
     996        # Temporarily disabled ug_ft course registration
     997        self.assertTrue('Please check back later'
     998            in self.browser.contents)
     999        return
     1000        ######################################################
     1001
    9781002        self.assertTrue('Please pay restitution fee first'
    9791003            in self.browser.contents)
Note: See TracChangeset for help on using the changeset viewer.