Changeset 11604 for main


Ignore:
Timestamp:
29 Apr 2014, 07:31:54 (11 years ago)
Author:
Henrik Bettermann
Message:

is_fresh property method added to Student class.

Location:
main/waeup.kofa/trunk
Files:
2 edited

Legend:

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

    r11599 r11604  
    441.2dev (unreleased)
    55===================
     6
     7* is_fresh property method added to Student class.
    68
    79* Special application procedure modified. Special applicants must submit
  • main/waeup.kofa/trunk/src/waeup/kofa/students/student.py

    r10266 r11604  
    211211
    212212    @property
     213    def is_fresh(self):
     214        return self.current_session == self.entry_session
     215
     216    @property
    213217    def before_payment(self):
    214         entry_session = getattr(
    215             self.get('studycourse', None), 'entry_session', None)
    216218        non_fresh_states = (PAID, REGISTERED, VALIDATED, RETURNING, )
    217         if self.current_session == entry_session and \
    218             self.state not in non_fresh_states:
     219        if self.is_fresh and self.state not in non_fresh_states:
    219220            return True
    220221        return False
Note: See TracChangeset for help on using the changeset viewer.