[Checkins] SVN: z3c.searcher/trunk/ added initial generation configuration
Roger Ineichen
roger at projekt01.ch
Fri Nov 21 20:39:03 EST 2008
Log message for revision 93255:
added initial generation configuration
Changed:
U z3c.searcher/trunk/CHANGES.txt
U z3c.searcher/trunk/src/z3c/searcher/configure.zcml
A z3c.searcher/trunk/src/z3c/searcher/generations/
A z3c.searcher/trunk/src/z3c/searcher/generations/__init__.py
A z3c.searcher/trunk/src/z3c/searcher/generations/configure.zcml
-=-
Modified: z3c.searcher/trunk/CHANGES.txt
===================================================================
--- z3c.searcher/trunk/CHANGES.txt 2008-11-21 21:59:35 UTC (rev 93254)
+++ z3c.searcher/trunk/CHANGES.txt 2008-11-22 01:39:02 UTC (rev 93255)
@@ -5,4 +5,6 @@
Version 0.5.0 (unreleased)
-------------------------
+- Added initial generations configuration files
+
- Initial Release
Modified: z3c.searcher/trunk/src/z3c/searcher/configure.zcml
===================================================================
--- z3c.searcher/trunk/src/z3c/searcher/configure.zcml 2008-11-21 21:59:35 UTC (rev 93254)
+++ z3c.searcher/trunk/src/z3c/searcher/configure.zcml 2008-11-22 01:39:02 UTC (rev 93255)
@@ -2,6 +2,8 @@
xmlns="http://namespaces.zope.org/zope"
i18n_domain="z3c">
+ <include package=".generations" />
+
<adapter
factory=".session.SearchSession"
/>
Added: z3c.searcher/trunk/src/z3c/searcher/generations/__init__.py
===================================================================
--- z3c.searcher/trunk/src/z3c/searcher/generations/__init__.py (rev 0)
+++ z3c.searcher/trunk/src/z3c/searcher/generations/__init__.py 2008-11-22 01:39:02 UTC (rev 93255)
@@ -0,0 +1,27 @@
+##############################################################################
+#
+# Copyright (c) 2008 Projekt01 GmbH and Contributors.
+# All Rights Reserved.
+#
+# This software is subject to the provisions of the Zope Public License,
+# Version 2.1 (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:$
+"""
+__docformat__ = "reStructuredText"
+
+from zope.app.generations.generations import SchemaManager
+
+pkg = 'z3c.searcher.generations'
+
+
+schemaManager = SchemaManager(
+ minimum_generation=0,
+ generation=0,
+ package_name=pkg)
Added: z3c.searcher/trunk/src/z3c/searcher/generations/configure.zcml
===================================================================
--- z3c.searcher/trunk/src/z3c/searcher/generations/configure.zcml (rev 0)
+++ z3c.searcher/trunk/src/z3c/searcher/generations/configure.zcml 2008-11-22 01:39:02 UTC (rev 93255)
@@ -0,0 +1,10 @@
+<configure
+ xmlns="http://namespaces.zope.org/zope">
+
+ <utility
+ name="z3c.searcher"
+ provides="zope.app.generations.interfaces.ISchemaManager"
+ component=".schemaManager"
+ />
+
+</configure>
More information about the Checkins
mailing list