Ignore:
Timestamp:
6 Dec 2019, 11:25:22 (5 years ago)
Author:
Henrik Bettermann
Message:

Temporarily we allow students to pay for next session, so their current_session might have increased.

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

Legend:

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

    r15868 r15869  
    977977    def _searchCatalog(self, session):
    978978        cat = queryUtility(ICatalog, name='coursetickets_catalog')
     979        # Temporarily we allow students to pay for next session, so their
     980        # current_session might have increased
    979981        coursetickets = cat.searchResults(
    980             session=(session, session),
     982            session=(session, session+1),
    981983            code=(self.context.code, self.context.code)
    982984            )
  • main/waeup.aaue/trunk/src/waeup/aaue/students/studylevel.py

    r15804 r15869  
    450450            cas = grok.getSite()[
    451451                'configuration'].current_academic_session
     452            # Temporarily we allow students to pay for next session, so their
     453            # current_session might have increased
    452454            if self.student.state in (VALIDATED, REGISTERED, PAID) and \
    453                 self.student.current_session == cas:
     455                self.student.current_session in (cas, cas+1):
    454456                return True
    455457        except (AttributeError, TypeError): # in unit tests
Note: See TracChangeset for help on using the changeset viewer.