Changeset 7113 for main/waeup.sirp/trunk


Ignore:
Timestamp:
15 Nov 2011, 07:55:37 (13 years ago)
Author:
uli
Message:

First sketch of PrincipalRoleManager? specifically designed for applicants.

Location:
main/waeup.sirp/trunk/src/waeup/sirp/applicants
Files:
2 added
3 edited

Legend:

Unmodified
Added
Removed
  • main/waeup.sirp/trunk/src/waeup/sirp/applicants/__init__.py

    r7063 r7113  
    1010    ApplicantsRoot, get_applicant_data, application_exists,
    1111    )
     12from waeup.sirp.applicants.securitypolicy import (
     13    ApplicantSecurityMap, ApplicantPrincipalRoleManager,)
    1214
    1315__all__ = [
     
    1719    'ApplicantImageNameChooser',
    1820    'ApplicantImageStoreHandler',
     21    'ApplicantPrincipalRoleManager',
     22    'ApplicantSecurityMap',
    1923    'ApplicantsContainer',
    2024    'ApplicantsRoot',
  • main/waeup.sirp/trunk/src/waeup/sirp/applicants/browser.py

    r7094 r7113  
    545545    grok.context(IApplicant)
    546546    grok.name('index')
    547     grok.require('waeup.handleApplication')
     547    grok.require('waeup.viewApplication')
    548548    form_fields = grok.AutoFields(IApplicant).omit(
    549549        'locked').omit('course_admitted')
     
    859859    grok.name('passport.jpg')
    860860    grok.context(IApplicant)
    861     grok.require('waeup.handleApplication')
     861    grok.require('waeup.viewApplication')
    862862
    863863    def render(self):
  • main/waeup.sirp/trunk/src/waeup/sirp/applicants/tests/test_browser.py

    r7088 r7113  
    9393        certificate.code = 'CERT1'
    9494        certificate.application_category = 'basic'
     95        self.certificate = certificate
    9596        self.app['faculties']['fac1'] = Faculty()
    9697        self.app['faculties']['fac1']['dep1'] = Department()
     98        self.department = self.app['faculties']['fac1']['dep1']
    9799        self.app['faculties']['fac1']['dep1'].certificates.addCertificate(
    98100            certificate)
Note: See TracChangeset for help on using the changeset viewer.