[Zope3-checkins] CVS: Zope3/src/zope/app/interfaces/security/grants - securitymap.py:1.1 localsecuritymap.py:NONE

Jim Fulton jim@zope.com
Thu, 26 Dec 2002 13:52:00 -0500


Update of /cvs-repository/Zope3/src/zope/app/interfaces/security/grants
In directory cvs.zope.org:/tmp/cvs-serv20396/grants

Added Files:
	securitymap.py 
Removed Files:
	localsecuritymap.py 
Log Message:
Renamed and consolidated a number of files in the ongoing quest to get
to single-line imports.



=== Added File Zope3/src/zope/app/interfaces/security/grants/securitymap.py ===
##############################################################################
#
# Copyright (c) 2001, 2002 Zope Corporation and Contributors.
# All Rights Reserved.
#
# This software is subject to the provisions of the Zope Public License,
# Version 2.0 (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.
#
##############################################################################
"""Security map to hold matrix-like relationships."""

from zope.interface import Interface


class ISecurityMap(Interface):
    """Security map to hold matrix-like relationships."""

    def addCell(rowentry, colentry, value):
        " add a cell "

    def delCell(rowentry, colentry):
        " delete a cell "

    # XXX queryCell / getCell ?
    def getCell(rowentry, colentry, default=None):
        " return the value of a cell by row, entry "

    def getRow(rowentry):
        " return a list of (colentry, value) tuples from a row "

    def getCol(colentry):
        " return a list of (rowentry, value) tuples from a col "

    def getAllCells():
        " return a list of (rowentry, colentry, value) "

=== Removed File Zope3/src/zope/app/interfaces/security/grants/localsecuritymap.py ===