Changeset 16371


Ignore:
Timestamp:
13 Jan 2021, 18:53:15 (4 years ago)
Author:
Henrik Bettermann
Message:

Allow editing of clearance data in state 'clearance requested'.

File:
1 edited

Legend:

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

    r16337 r16371  
    2121import grok
    2222from zope.interface import implementedBy
     23from waeup.kofa.interfaces import CLEARANCE, REQUESTED
    2324from waeup.kofa.utils.helpers import attrs_to_fields
    2425from waeup.kofa.students.student import StudentFactory
     
    5051        if self.current_mode == 'found':
    5152            return True
    52         return False
     53        return
     54
     55    @property
     56    def clearance_locked(self):
     57        return self.state not in (CLEARANCE, REQUESTED)
    5358
    5459
Note: See TracChangeset for help on using the changeset viewer.