Changeset 10347


Ignore:
Timestamp:
22 Jun 2013, 17:01:32 (12 years ago)
Author:
Henrik Bettermann
Message:

CC Officer does no longer exist in base package.

Location:
main/waeup.kofa/trunk/src/waeup/kofa
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • main/waeup.kofa/trunk/src/waeup/kofa/browser/tests/test_browser.py

    r10258 r10347  
    257257
    258258    def test_export_accesscodes(self):
    259         # Create portal manager and CCOfficer
    260         self.app['users'].addUser('mrmanager', 'mrmanagersecret')
    261         self.app['users']['mrmanager'].email = 'mrmanager@foo.ng'
    262         self.app['users']['mrmanager'].title = 'Carlo Pitter'
     259        # Create portal manager and an ExportManager
     260        self.app['users'].addUser('mrportal', 'mrportalsecret')
     261        self.app['users']['mrportal'].email = 'mrportal@foo.ng'
     262        self.app['users']['mrportal'].title = 'Carlo Pitter'
    263263        # Assign PortalManager role
    264264        prmlocal = IPrincipalRoleManager(self.app)
    265         prmlocal.assignRoleToPrincipal('waeup.PortalManager', 'mrmanager')
    266         self.app['users'].addUser('mrofficer', 'mrofficersecret')
    267         self.app['users']['mrofficer'].email = 'mrofficer@foo.ng'
    268         self.app['users']['mrofficer'].title = 'Carlos Potter'
    269         # Assign CCOfficer role
    270         prmlocal.assignRoleToPrincipal('waeup.CCOfficer', 'mrofficer')
     265        prmlocal.assignRoleToPrincipal('waeup.PortalManager', 'mrportal')
     266        self.app['users'].addUser('mrexporter', 'mrexportersecret')
     267        self.app['users']['mrexporter'].email = 'mrexporter@foo.ng'
     268        self.app['users']['mrexporter'].title = 'Carlos Potter'
     269        # Assign ExportManager role
     270        prmlocal.assignRoleToPrincipal('waeup.ExportManager', 'mrexporter')
    271271
    272272        # Login as portal manager
    273273        self.browser.open('http://localhost/app/login')
    274         self.browser.getControl(name="form.login").value = 'mrmanager'
    275         self.browser.getControl(name="form.password").value = 'mrmanagersecret'
     274        self.browser.getControl(name="form.login").value = 'mrportal'
     275        self.browser.getControl(name="form.password").value = 'mrportalsecret'
    276276        self.browser.getControl("Login").click()
    277277
     
    299299        # Login as officer who is not allowed to download accesscodes
    300300        self.browser.open('http://localhost/app/login')
    301         self.browser.getControl(name="form.login").value = 'mrofficer'
    302         self.browser.getControl(name="form.password").value = 'mrofficersecret'
     301        self.browser.getControl(name="form.login").value = 'mrexporter'
     302        self.browser.getControl(name="form.password").value = 'mrexportersecret'
    303303        self.browser.getControl("Login").click()
    304304
    305305        self.browser.open(self.datacenter_path + '/export')
    306         # The CC Officer can see the accesscodebatches exporter ...
     306        # The Export Manager can see the accesscodebatches exporter ...
    307307        self.assertTrue(
    308308            '<option value="accesscodebatches">' in self.browser.contents)
  • main/waeup.kofa/trunk/src/waeup/kofa/permissions.txt

    r10279 r10347  
    3939    >>> from waeup.kofa.permissions import get_waeup_roles
    4040    >>> len(list(get_waeup_roles()))
    41     23
     41    22
    4242
    4343    >>> len(list(get_waeup_roles(also_local=True)))
    44     41
     44    40
    4545
    4646
     
    6161     u'waeup.ApplicationsOfficer',
    6262     u'waeup.BursaryOfficer',
    63      u'waeup.CCOfficer',
    6463     u'waeup.DataCenterManager',
    6564     u'waeup.ExportManager',
Note: See TracChangeset for help on using the changeset viewer.