[Zope3-checkins] CVS: Zope3/src/zope/app/interfaces/container - __init__.py:1.1.2.1 find.py:1.1.2.1

Jim Fulton jim@zope.com
Mon, 23 Dec 2002 14:31:49 -0500


Update of /cvs-repository/Zope3/src/zope/app/interfaces/container
In directory cvs.zope.org:/tmp/cvs-serv19908/zope/app/interfaces/container

Added Files:
      Tag: NameGeddon-branch
	__init__.py find.py 
Log Message:
Initial renaming before debugging

=== Added File Zope3/src/zope/app/interfaces/container/__init__.py ===
#
# This file is necessary to make this directory a package.


=== Added File Zope3/src/zope/app/interfaces/container/find.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.
# 
##############################################################################
"""

$Id: find.py,v 1.1.2.1 2002/12/23 19:31:48 jim Exp $
"""

from zope.interface import Interface

class IFind(Interface):
    """
    Find support for containers.
    """
    
    def find(id_filters=None, object_filters=None):
        """Find object that matches all filters in all sub objects,
        not including this container itself.
        """

class IObjectFindFilter(Interface):

    def matches(object):
        """Returns true if the object matches the filter criteria.
        """
        
class IIdFindFilter(Interface):

    def matches(id):
        """Returns true if the id matches the filter criteria.
        """