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/etranzact/studentsbrowser.py

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