Changeset 14602


Ignore:
Timestamp:
6 Mar 2017, 16:24:04 (8 years ago)
Author:
uli
Message:

Add permission role for fingerprint devices.

Location:
main/waeup.kofa/trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • main/waeup.kofa/trunk/CHANGES.txt

    r14584 r14602  
    1717* Catch traceback (`RequiredMissing`) if a required field is cleared
    1818  by import.
     19
     20* Add role `FingerprintReaderDeviceRole` intended for fingerprint reader
     21  devices that access the portal via XMLRPC.
    1922
    2023
  • main/waeup.kofa/trunk/src/waeup/kofa/doctests/permissions.txt

    r12948 r14602  
    3939    >>> from waeup.kofa.permissions import get_waeup_roles
    4040    >>> len(list(get_waeup_roles()))
    41     26
     41    27
    4242
    4343    >>> len(list(get_waeup_roles(also_local=True)))
    44     47
     44    48
    4545
    4646
     
    6565     u'waeup.DocumentsOfficer',
    6666     u'waeup.ExportManager',
     67     u'waeup.FingerprintDevice',
    6768     u'waeup.ImportManager',
    6869     u'waeup.PortalManager',
  • main/waeup.kofa/trunk/src/waeup/kofa/permissions.py

    r14166 r14602  
    474474    grok.title(u'Workflow Manager')
    475475    grok.permissions('waeup.triggerTransition')
     476
     477
     478class FingerprintReaderDeviceRole(grok.Role):
     479    """Fingerprint Reader Devices.
     480
     481    Fingerprint readers are remote devices that can store and retrieve
     482    fingerprint data.i
     483    """
     484    grok.name('waeup.FingerprintDevice')
     485    grok.title(u'Fingerprint Reader')
     486    grok.permissions(
     487        'waeup.getBiometricDataPermission',
     488        'waeup.putBiometricDataPermission')
     489
    476490
    477491class PortalManager(grok.Role):
Note: See TracChangeset for help on using the changeset viewer.