Changeset 13224 for main/waeup.kofa/trunk/src/waeup/kofa/applicants
- Timestamp:
- 24 Aug 2015, 15:21:21 (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.kofa/trunk/src/waeup/kofa/applicants/applicant.py
r13216 r13224 391 391 @grok.subscribe(IApplicant, grok.IObjectRemovedEvent) 392 392 def handle_applicant_removed(applicant, event): 393 """If an applicant is removed a message is logged. 393 """If an applicant is removed a message is logged, passport images are 394 deleted and the global role is unset. 394 395 """ 395 396 comment = 'Application record removed' … … 402 403 # an applicants subcontainer 403 404 return 404 # Remove a lso any passport image.405 # Remove any passport image. 405 406 file_store = getUtility(IExtFileStore) 406 407 file_store.deleteFileByContext(applicant) 408 # Remove global role 409 role_manager = IPrincipalRoleManager(grok.getSite()) 410 role_manager.unsetRoleForPrincipal( 411 'waeup.Applicant', applicant.applicant_id) 407 412 return
Note: See TracChangeset for help on using the changeset viewer.