Ignore:
Timestamp:
3 Nov 2012, 18:47:31 (12 years ago)
Author:
Henrik Bettermann
Message:

Clearly separate current and previous session payment browser components.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/waeup.kofa/trunk/src/waeup/kofa/students/student.py

    r9334 r9517  
    3636from waeup.kofa.interfaces import (
    3737    IObjectHistory, IUserAccount, IFileStoreNameChooser, IFileStoreHandler,
    38     IKofaUtils, CLEARANCE, registration_states_vocab, IExtFileStore,)
     38    IKofaUtils, registration_states_vocab, IExtFileStore,
     39    CLEARANCE)
    3940from waeup.kofa.students.accommodation import StudentAccommodation
    4041from waeup.kofa.students.export import EXPORTER_NAMES
     
    190191            self.get('studycourse', None), 'is_postgrad', False)
    191192        return is_postgrad
     193
     194    @property
     195    def is_fresh(self):
     196        entry_session = getattr(
     197            self.get('studycourse', None), 'entry_session', None)
     198        if self.current_session == entry_session:
     199            return True
     200        return False
    192201
    193202    def transfer(self, certificate, current_session=None,
Note: See TracChangeset for help on using the changeset viewer.