[Zope3-checkins] CVS: Zope3/src/zope/app/interfaces/index - keyword.py:1.1

Anthony Baxter anthony at interlink.com.au
Sun Aug 3 02:41:21 EDT 2003


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

Added Files:
	keyword.py 
Log Message:
hooking up keyword indexes to the catalog (even got tests!)


=== Added File Zope3/src/zope/app/interfaces/index/keyword.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.
#
##############################################################################
"""Interfaces related to keyword indexing and searching.

Should be refactored (along with text and field)

$Id: keyword.py,v 1.1 2003/08/03 05:41:16 anthony Exp $
"""

from zope.interface import Interface
from zope.schema import BytesLine
from zope.app.component.interfacefield import InterfaceField

class IUIKeywordCatalogIndex(Interface):
    """Interface for creating a KeywordIndex in a catalog from the ZMI."""

    interface = InterfaceField(
		title=u"Interface",
		description=u"Objects will be adapted to this interface",
		required=False)

    field_name = BytesLine(
		title=u"Field Name",
		description=u"Name of the field to index")





More information about the Zope3-Checkins mailing list