Ignore:
Timestamp:
24 Sep 2020, 06:42:10 (4 years ago)
Author:
Henrik Bettermann
Message:

Fallback: Check current year session if session object does not exist.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/kofacustom.nigeria/trunk/src/kofacustom/nigeria/interswitch/browser.py

    r15974 r16246  
    4545            'interswitch_enabled', True)
    4646    except KeyError:
    47         return False
     47        session = datetime.now().year
     48        try:
     49            return getattr(grok.getSite()['configuration'][str(session)],
     50                'interswitch_enabled', True)
     51        except KeyError:
     52            return False
    4853
    4954class InterswitchActionButtonStudent(ManageActionButton):
Note: See TracChangeset for help on using the changeset viewer.