[Zope-Checkins] CVS: Zope3/lib/python/Zope/App/Security - IPrincipalRoleManager.py:1.1.2.1

Barry Warsaw barry@wooz.org
Thu, 13 Dec 2001 16:02:16 -0500


Update of /cvs-repository/Zope3/lib/python/Zope/App/Security
In directory cvs.zope.org:/tmp/cvs-serv405

Added Files:
      Tag: Zope-3x-branch
	IPrincipalRoleManager.py 
Log Message:
Management interface for mappings between principals and roles.


=== Added File Zope3/lib/python/Zope/App/Security/IPrincipalRoleManager.py ===
# IPrincipalRoleManager.py
#
# Copyright (c) 2001 Zope Coporation and Contributors.  All Rights Reserved.
#
# This software is subject to the provisions of the Zope Public License,
# Version 1.1 (ZPL).  A copy of the ZPL should accompany this distribution.
# THIS SOFTWARE IS PROVIDED "AS IS" AND ANY AND ALL EXPRESS OR IMPLIED
# WARRANTIES ARE DISCLAIMED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
# WARRANTIES OF TITLE, MERCHANTABILITY, AGAINST INFRINGEMENT, AND FITNESS 
# FOR A PARTICULAR PURPOSE.

"""Management interface for mappings between principals and roles."""

from Zope.App.Security.IPrincipalRoleMap import IPrincipalRoleMap


class IPrincipalRoleManager(IPrincipalRoleMap):
    """Management interface for mappings between principals and roles."""

    def assignRoleToPrincipal(role, principal):
        """Assign the role to the principal.

        role must be an IRole
        principal must be an IPrincipal
        """