Changeset 11931 for main/waeup.kwarapoly


Ignore:
Timestamp:
2 Nov 2014, 06:54:31 (10 years ago)
Author:
Henrik Bettermann
Message:

Make registration slip download available to new students only after
they have paid their fees.

Location:
main/waeup.kwarapoly/trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • main/waeup.kwarapoly/trunk/CHANGES.txt

    r11904 r11931  
    441.2dev (unreleased)
    55===================
     6
     7* Make registration slip download available to new students only after
     8  they have paid their fees.
    69
    710* Changed course registration slips and other PDF forms to show
  • main/waeup.kwarapoly/trunk/src/waeup/kwarapoly/students/browser.py

    r11906 r11931  
    398398
    399399    def render(self):
     400        if self.context.state in (CREATED, ADMITTED,
     401                                  CLEARANCE, REQUESTED, CLEARED):
     402            self.flash('Not allowed.')
     403            self.redirect(self.url(self.context))
     404            return
    400405        studentview = StudentBasePDFFormPage(self.context.student,
    401406            self.request, self.omit_fields)
  • main/waeup.kwarapoly/trunk/src/waeup/kwarapoly/students/viewlets.py

    r10705 r11931  
    8282    @property
    8383    def target_url(self):
    84         if self.context.state in (CREATED,):
     84        if self.context.state in (CREATED,ADMITTED,
     85                                  CLEARANCE, REQUESTED, CLEARED):
    8586            return ''
    8687        return self.view.url(self.view.context, self.target)
Note: See TracChangeset for help on using the changeset viewer.