[Checkins] SVN: zope.catalog/tags/ Tag 3.8.0
Dan Korostelev
nadako at gmail.com
Sun Feb 1 12:47:06 EST 2009
Log message for revision 95897:
Tag 3.8.0
Changed:
A zope.catalog/tags/
A zope.catalog/tags/3.8.0/
U zope.catalog/tags/3.8.0/CHANGES.txt
U zope.catalog/tags/3.8.0/setup.py
D zope.catalog/tags/3.8.0/src/zope/catalog/interfaces.py
A zope.catalog/tags/3.8.0/src/zope/catalog/interfaces.py
-=-
Modified: zope.catalog/tags/3.8.0/CHANGES.txt
===================================================================
--- zope.catalog/trunk/CHANGES.txt 2009-02-01 15:55:13 UTC (rev 95860)
+++ zope.catalog/tags/3.8.0/CHANGES.txt 2009-02-01 17:47:06 UTC (rev 95897)
@@ -2,7 +2,7 @@
CHANGES
=======
-3.8.0 (unreleased)
+3.8.0 (2009-02-01)
------------------
- Move core functionality from ``zope.app.catalog`` to this package.
Modified: zope.catalog/tags/3.8.0/setup.py
===================================================================
--- zope.catalog/trunk/setup.py 2009-02-01 15:55:13 UTC (rev 95860)
+++ zope.catalog/tags/3.8.0/setup.py 2009-02-01 17:47:06 UTC (rev 95897)
@@ -22,7 +22,7 @@
return open(os.path.join(os.path.dirname(__file__), *rnames)).read()
setup(name = 'zope.catalog',
- version = '3.8.0dev',
+ version = '3.8.0',
author='Zope Corporation and Contributors',
author_email='zope-dev at zope.org',
description='Cataloging and Indexing Framework for Zope 3',
Deleted: zope.catalog/tags/3.8.0/src/zope/catalog/interfaces.py
===================================================================
--- zope.catalog/trunk/src/zope/catalog/interfaces.py 2009-02-01 15:55:13 UTC (rev 95860)
+++ zope.catalog/tags/3.8.0/src/zope/catalog/interfaces.py 2009-02-01 17:47:06 UTC (rev 95897)
@@ -1,104 +0,0 @@
-##############################################################################
-#
-# Copyright (c) 2004 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.
-#
-##############################################################################
-"""Catalog Interfaces
-
-$Id$
-"""
-
-import zope.index.interfaces
-import zope.interface
-import zope.schema
-import zope.container.interfaces
-import zope.container.constraints
-
-from zope.i18nmessageid import ZopeMessageFactory as _
-
-class ICatalogQuery(zope.interface.Interface):
- """Provides Catalog Queries."""
-
- def searchResults(**kw):
- """Search on the given indexes.
-
- Keyword arguments dictionary keys
- are index names and values are queries
- for these indexes.
-
- Keyword arguments has some special names,
- used by the catalog itself:
-
- * _sort_index - The name of index to sort
- results with. This index must implement
- zope.index.interfaces.IIndexSort.
- * _limit - Limit result set by this number,
- useful when used with sorting.
- * _reverse - Reverse result set, also
- useful with sorting.
-
- """
-
-
-class ICatalogEdit(zope.index.interfaces.IInjection):
- """Allows one to manipulate the Catalog information."""
-
- def updateIndexes():
- """Reindex all objects."""
-
-
-class ICatalogIndex(zope.index.interfaces.IInjection,
- zope.index.interfaces.IIndexSearch,
- ):
- """An index to be used in a catalog
- """
- zope.container.constraints.containers('.ICatalog')
-
- __parent__ = zope.schema.Field()
-
-
-class ICatalog(ICatalogQuery, ICatalogEdit,
- zope.container.interfaces.IContainer):
- """Marker to describe a catalog in content space."""
-
- zope.container.constraints.contains(ICatalogIndex)
-
-class IAttributeIndex(zope.interface.Interface):
- """I index objects by first adapting them to an interface, then
- retrieving a field on the adapted object.
- """
-
- interface = zope.schema.Choice(
- title=_(u"Interface"),
- description=_(u"Objects will be adapted to this interface"),
- vocabulary="Interfaces",
- required=False,
- )
-
- field_name = zope.schema.BytesLine(
- title=_(u"Field Name"),
- description=_(u"Name of the field to index"),
- )
-
- field_callable = zope.schema.Bool(
- title=_(u"Field Callable"),
- description=_(u"If true, then the field should be called to get the "
- u"value to be indexed"),
- )
-
-
-class INoAutoIndex(zope.interface.Interface):
-
- """Marker for objects that should not be automatically indexed"""
-
-class INoAutoReindex(zope.interface.Interface):
-
- """Marker for objects that should not be automatically reindexed"""
Copied: zope.catalog/tags/3.8.0/src/zope/catalog/interfaces.py (from rev 95885, zope.catalog/trunk/src/zope/catalog/interfaces.py)
===================================================================
--- zope.catalog/tags/3.8.0/src/zope/catalog/interfaces.py (rev 0)
+++ zope.catalog/tags/3.8.0/src/zope/catalog/interfaces.py 2009-02-01 17:47:06 UTC (rev 95897)
@@ -0,0 +1,105 @@
+##############################################################################
+#
+# Copyright (c) 2004 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.
+#
+##############################################################################
+"""Catalog Interfaces
+
+$Id$
+"""
+
+import zope.index.interfaces
+import zope.interface
+import zope.schema
+import zope.container.interfaces
+import zope.container.constraints
+
+from zope.i18nmessageid import ZopeMessageFactory as _
+
+class ICatalogQuery(zope.interface.Interface):
+ """Provides Catalog Queries."""
+
+ def searchResults(**kw):
+ """Search on the given indexes.
+
+ Keyword arguments dictionary keys
+ are index names and values are queries
+ for these indexes.
+
+ Keyword arguments has some special names,
+ used by the catalog itself:
+
+ * _sort_index - The name of index to sort
+ results with. This index must implement
+ zope.index.interfaces.IIndexSort.
+ * _limit - Limit result set by this number,
+ useful when used with sorting.
+ * _reverse - Reverse result set, also
+ useful with sorting.
+
+ """
+
+
+class ICatalogEdit(zope.index.interfaces.IInjection):
+ """Allows one to manipulate the Catalog information."""
+
+ def updateIndexes():
+ """Reindex all objects."""
+
+
+class ICatalogIndex(zope.index.interfaces.IInjection,
+ zope.index.interfaces.IIndexSearch,
+ ):
+ """An index to be used in a catalog
+ """
+
+ __parent__ = zope.schema.Field()
+
+ zope.container.constraints.containers('.ICatalog')
+
+
+class ICatalog(ICatalogQuery, ICatalogEdit,
+ zope.container.interfaces.IContainer):
+ """Marker to describe a catalog in content space."""
+
+ zope.container.constraints.contains(ICatalogIndex)
+
+class IAttributeIndex(zope.interface.Interface):
+ """I index objects by first adapting them to an interface, then
+ retrieving a field on the adapted object.
+ """
+
+ interface = zope.schema.Choice(
+ title=_(u"Interface"),
+ description=_(u"Objects will be adapted to this interface"),
+ vocabulary="Interfaces",
+ required=False,
+ )
+
+ field_name = zope.schema.BytesLine(
+ title=_(u"Field Name"),
+ description=_(u"Name of the field to index"),
+ )
+
+ field_callable = zope.schema.Bool(
+ title=_(u"Field Callable"),
+ description=_(u"If true, then the field should be called to get the "
+ u"value to be indexed"),
+ )
+
+
+class INoAutoIndex(zope.interface.Interface):
+
+ """Marker for objects that should not be automatically indexed"""
+
+class INoAutoReindex(zope.interface.Interface):
+
+ """Marker for objects that should not be automatically reindexed"""
More information about the Checkins
mailing list