Changeset 6043 for main/waeup.sirp
- Timestamp:
- 11 May 2011, 11:14:15 (14 years ago)
- Location:
- main/waeup.sirp/trunk/src/waeup/sirp
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.sirp/trunk/src/waeup/sirp/applicants/authentication.py
r5909 r6043 42 42 43 43 44 class PortalUser(grok.Role):45 """A role for applicants.46 """47 grok.name('waeup.Applicant')48 grok.permissions('waeup.Public')49 50 44 class ApplicantPrincipalInfo(object): 51 45 """Infos about an applicant principal. -
main/waeup.sirp/trunk/src/waeup/sirp/applicants/browser.py
r6041 r6043 331 331 role_manager = IPrincipalRoleManager(self.context) 332 332 role_manager.assignRoleToPrincipal( 333 'waeup. ApplicationOwner', self.request.principal.id)333 'waeup.local.ApplicationOwner', self.request.principal.id) 334 334 self.redirect(self.url(self.context[pin], 'edit')) 335 335 return -
main/waeup.sirp/trunk/src/waeup/sirp/permissions.py
r5937 r6043 31 31 grok.name('waeup.facultyread') 32 32 33 # Application permissions34 class ViewApplication(grok.Permission):35 grok.name('waeup.viewApplication')36 37 class ViewFullApplication(grok.Permission):38 grok.name('waeup.viewFullApplication')39 40 class EditApplication(grok.Permission):41 grok.name('waeup.editApplication')42 43 class EditFullApplication(grok.Permission):44 grok.name('waeup.editFullApplication')45 46 33 # Roles 47 34 class PortalUser(grok.Role): … … 54 41 'waeup.View', 'waeup.Public','waeup.manageACBatches') 55 42 56 class ApplicationOwner(grok.Role):57 grok.name('waeup.ApplicationOwner')58 grok.permissions('waeup.viewApplication', 'waeup.editApplication')59 60 43 def getRoles(): 61 44 app = grok.getSite()
Note: See TracChangeset for help on using the changeset viewer.