[Zope3-checkins] CVS: Zope3/lib/python/Zope/App/OFS/Services/QueryService - IQueryProcessor.py:1.1 __init__.py:1.1

Christian Theune ct@gocept.com
Tue, 3 Dec 2002 11:30:18 -0500


Update of /cvs-repository/Zope3/lib/python/Zope/App/OFS/Services/QueryService
In directory cvs.zope.org:/tmp/cvs-serv22618

Added Files:
	IQueryProcessor.py __init__.py 
Log Message:
initial checkin


=== Added File Zope3/lib/python/Zope/App/OFS/Services/QueryService/IQueryProcessor.py ===
##############################################################################
#
# Copyright (c) 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.
# 
##############################################################################
"""XXX short summary goes here.

XXX longer description goes here.

$Id: IQueryProcessor.py,v 1.1 2002/12/03 16:30:17 ctheune Exp $
"""

from Interface import Interface
from Interface.Attribute import Attribute

class IQueryProcessor(Interface):
    
    input_interface = Attribute("The __implements__-like specification "
                                "for the input interfaces.")
    output_interface = Attribute("The __implements__-like specification "
                                 "for the output interfaces.")

    def __call__(query):
        """Processes the query returning the result.

           The query must be adaptable to each interface in input_interface.
           The output should be adaptable to each interface in the
           output_interface.
        """


=== Added File Zope3/lib/python/Zope/App/OFS/Services/QueryService/__init__.py ===
# Empty __init__.py to make this a package.