Ignore:
Timestamp:
4 Nov 2020, 11:20:31 (4 years ago)
Author:
Henrik Bettermann
Message:

Bio Data form should now be available to all students who have paid at least 200,000.

Location:
main/kofacustom.iuokada/trunk/src/kofacustom/iuokada/students
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • main/kofacustom.iuokada/trunk/src/kofacustom/iuokada/students/browser.py

    r16297 r16298  
    128128
    129129    def update(self):
    130         if not self.context.is_fresh:
    131             self.flash('Not allowed.', type="danger")
    132             self.redirect(self.url(self.context))
    133             return
     130        #if not self.context.is_fresh:
     131        #    self.flash('Not allowed.', type="danger")
     132        #    self.redirect(self.url(self.context))
     133        #    return
    134134        minamount = 200000
    135         if not self.context.minimumFreshStudentPayments(minamount):
     135        if not self.context.minimumStudentPayments(minamount):
    136136            self.flash('Please make required payments first '
    137137                       '(at least in the amount of %s Naira).' % minamount,
  • main/kofacustom.iuokada/trunk/src/kofacustom/iuokada/students/student.py

    r16280 r16298  
    5151        return False
    5252
    53     def minimumFreshStudentPayments(self, minamount):
     53    def minimumStudentPayments(self, minamount):
    5454        """Need to access edit_personal. Only in iuokada package.
    5555        """
    56         if not self.is_fresh:
    57             return False
     56        #if not self.is_fresh:
     57        #    return False
    5858        total_amount = 0.0
    5959        for ticket in self['payments'].values():
    60             if ticket.p_state == 'paid':
     60            if ticket.p_state == 'paid' \
     61                and ticket.p_session >= self.current_session:
    6162                total_amount += ticket.amount_auth
    6263        if total_amount >= minamount:
  • main/kofacustom.iuokada/trunk/src/kofacustom/iuokada/students/viewlets.py

    r16295 r16298  
    7373    @property
    7474    def target_url(self):
    75         if not self.context.is_fresh:
    76             return ''
     75        #if not self.context.is_fresh:
     76        #    return ''
    7777        return self.view.url(self.view.context, self.target)
    7878
     
    8888    @property
    8989    def target_url(self):
    90         if not self.context.is_fresh:
    91             return ''
     90        #if not self.context.is_fresh:
     91        #    return ''
    9292        return self.view.url(self.view.context, self.target)
    9393
Note: See TracChangeset for help on using the changeset viewer.