Changeset 14919 for main/kofacustom.dspg
- Timestamp:
- 4 Dec 2017, 10:39:28 (7 years ago)
- Location:
- main/kofacustom.dspg/trunk/src/kofacustom/dspg/students
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
main/kofacustom.dspg/trunk/src/kofacustom/dspg/students/student.py
r14716 r14919 21 21 import grok 22 22 from zope.interface import implementedBy 23 from waeup.kofa.interfaces import CLEARANCE, RETURNING 23 24 from waeup.kofa.utils.helpers import attrs_to_fields 24 25 from waeup.kofa.students.student import StudentFactory … … 43 44 return False 44 45 46 @property 47 def clearance_locked(self): 48 return self.state not in(CLEARANCE, RETURNING,) 49 45 50 46 51 # Set all attributes of Student required in IStudent as field -
main/kofacustom.dspg/trunk/src/kofacustom/dspg/students/utils.py
r14884 r14919 19 19 from zope.component import createObject, getUtility 20 20 from waeup.kofa.interfaces import (IKofaUtils, 21 CLEARED, RETURNING, PAID, REGISTERED, VALIDATED)21 ADMITTED, CLEARED, RETURNING, PAID, REGISTERED, VALIDATED) 22 22 from kofacustom.nigeria.students.utils import NigeriaStudentsUtils 23 23 from kofacustom.dspg.interfaces import MessageFactory as _ … … 198 198 'resultstatementupload', 199 199 ) 200 201 #: A tuple containing the names of registration states in which changing of 202 #: passport pictures is allowed. 203 PORTRAIT_CHANGE_STATES = (ADMITTED, RETURNING,)
Note: See TracChangeset for help on using the changeset viewer.