- Timestamp:
- 16 Jun 2011, 21:53:20 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.sirp/trunk/src/waeup/sirp/applicants/browser.py
r6390 r6394 434 434 435 435 role_manager = IPrincipalRoleManager(self.context[pin]) 436 roles = role_manager.getRolesForPrincipal(self.request.principal.id) 437 if not 'waeup.local.ApplicationOwner' in map(lambda x, y: x, roles): 438 # Assign current principal the owner role on created applicant 439 # record 440 role_manager.assignRoleToPrincipal( 441 'waeup.local.ApplicationOwner', self.request.principal.id) 442 443 # Assign current principal the PortalUser role 444 role_manager = IPrincipalRoleManager(grok.getSite()['faculties']) 445 role_manager.assignRoleToPrincipal( 446 'waeup.PortalUser', self.request.principal.id) 436 role_manager.assignRoleToPrincipal( 437 'waeup.local.ApplicationOwner', self.request.principal.id) 438 439 # Assign current principal the PortalUser role 440 role_manager = IPrincipalRoleManager(grok.getSite()['faculties']) 441 role_manager.assignRoleToPrincipal( 442 'waeup.PortalUser', self.request.principal.id) 447 443 448 444 # Mark application as started
Note: See TracChangeset for help on using the changeset viewer.