Changeset 16359 for main/waeup.uniben/trunk/src/waeup/uniben
- Timestamp:
- 10 Jan 2021, 13:02:37 (4 years ago)
- Location:
- main/waeup.uniben/trunk/src/waeup/uniben/students
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.uniben/trunk/src/waeup/uniben/students/utils.py
r16108 r16359 22 22 from reportlab.lib.styles import getSampleStyleSheet 23 23 from waeup.kofa.browser.pdf import ENTRY1_STYLE 24 from waeup.kofa.interfaces import (IKofaUtils, 24 from waeup.kofa.interfaces import (IKofaUtils, ADMITTED, CLEARANCE, 25 25 CLEARED, RETURNING, PAID, REGISTERED, VALIDATED, GRADUATED) 26 26 from waeup.kofa.utils.helpers import to_timezone … … 617 617 #: A tuple containing the names of registration states in which changing of 618 618 #: passport pictures is allowed. 619 PORTRAIT_CHANGE_STATES = ( )619 PORTRAIT_CHANGE_STATES = (ADMITTED, CLEARANCE,) 620 620 621 621 # Uniben prefix -
main/waeup.uniben/trunk/src/waeup/uniben/students/viewlets.py
r16130 r16359 214 214 download_name = u'secr_cults' 215 215 216 # WAEC Results Scratch Card 217 218 class WAECResultsScratchCardDisplay(StudentFileDisplay): 219 """WAEC Results Scratch Card display viewlet. 220 """ 221 grok.order(20) 222 label = _(u'WAEC Results Scratch Card') 223 title = _(u'WAEC Results Scratch Card') 224 download_name = u'waec_sc' 225 226 class WAECResultsScratchCardSlip(WAECResultsScratchCardDisplay): 227 grok.view(ExportPDFClearanceSlip) 228 229 class WAECResultsScratchCardUpload(StudentFileUpload): 230 """WAEC Results Scratch Card upload viewlet. 231 """ 232 grok.order(20) 233 label = _(u'WAEC Results Scratch Card') 234 title = _(u'WAEC Results Scratch Card Scan') 235 mus = 1024 * 150 236 download_name = u'waec_sc' 237 238 class WAECResultsScratchCardImage(StudentImage): 239 """Renders WAEC Results Scratch Card scan. 240 """ 241 grok.name('waec_sc') 242 download_name = u'waec_sc' 243 216 244 # Fingerprints 217 245
Note: See TracChangeset for help on using the changeset viewer.