Ignore:
Timestamp:
14 May 2013, 03:58:14 (12 years ago)
Author:
Henrik Bettermann
Message:

Add exportData permission and role. Permission not yet used.

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

Legend:

Unmodified
Added
Removed
  • main/waeup.kofa/trunk/src/waeup/kofa/permissions.py

    r10064 r10177  
    6868    grok.name('waeup.importData')
    6969
     70class ExportData(grok.Permission):
     71    grok.name('waeup.exportData')
     72
    7073class ManagePortalConfiguration(grok.Permission):
    7174    grok.name('waeup.managePortalConfiguration')
     
    208211    grok.permissions('waeup.manageDataCenter',
    209212                     'waeup.importData')
     213
     214class ExportManager(grok.Role):
     215    grok.name('waeup.ExportManager')
     216    grok.title(u'Export Manager')
     217    grok.permissions('waeup.manageDataCenter',
     218                     'waeup.exportData')
    210219
    211220class UsersManager(grok.Role):
     
    229238                     'waeup.manageDataCenter',
    230239                     'waeup.importData',
     240                     'waeup.exportData',
    231241                     'waeup.managePortalConfiguration', 'waeup.viewApplication',
    232242                     'waeup.manageApplication', 'waeup.handleApplication',
     
    258268                     'waeup.manageDataCenter',
    259269                     #'waeup.importData',
     270                     #'waeup.exportData',
    260271                     'waeup.managePortalConfiguration', 'waeup.viewApplication',
    261272                     'waeup.manageApplication', 'waeup.handleApplication',
  • main/waeup.kofa/trunk/src/waeup/kofa/permissions.txt

    r10064 r10177  
    3939    >>> from waeup.kofa.permissions import get_waeup_roles
    4040    >>> len(list(get_waeup_roles()))
    41     19
     41    20
    4242
    4343    >>> len(list(get_waeup_roles(also_local=True)))
    44     35
     44    36
    4545
    4646
     
    6161     u'waeup.CCOfficer',
    6262     u'waeup.DataCenterManager',
     63     u'waeup.ExportManager',
    6364     u'waeup.ImportManager',
    6465     u'waeup.PortalManager',
Note: See TracChangeset for help on using the changeset viewer.