Changeset 6043 for main


Ignore:
Timestamp:
11 May 2011, 11:14:15 (14 years ago)
Author:
uli
Message:

Move applicant perms/roles into applicants package.

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  
    4242
    4343
    44 class PortalUser(grok.Role):
    45     """A role for applicants.
    46     """
    47     grok.name('waeup.Applicant')
    48     grok.permissions('waeup.Public')
    49 
    5044class ApplicantPrincipalInfo(object):
    5145    """Infos about an applicant principal.
  • main/waeup.sirp/trunk/src/waeup/sirp/applicants/browser.py

    r6041 r6043  
    331331        role_manager = IPrincipalRoleManager(self.context)
    332332        role_manager.assignRoleToPrincipal(
    333             'waeup.ApplicationOwner', self.request.principal.id)
     333            'waeup.local.ApplicationOwner', self.request.principal.id)
    334334        self.redirect(self.url(self.context[pin], 'edit'))
    335335        return
  • main/waeup.sirp/trunk/src/waeup/sirp/permissions.py

    r5937 r6043  
    3131    grok.name('waeup.facultyread')
    3232
    33 # Application permissions
    34 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 
    4633# Roles
    4734class PortalUser(grok.Role):
     
    5441                     'waeup.View', 'waeup.Public','waeup.manageACBatches')
    5542
    56 class ApplicationOwner(grok.Role):
    57     grok.name('waeup.ApplicationOwner')
    58     grok.permissions('waeup.viewApplication', 'waeup.editApplication')
    59    
    6043def getRoles():
    6144    app = grok.getSite()
Note: See TracChangeset for help on using the changeset viewer.