[Checkins] SVN: z3ext.lucene/tags/1.1.3/ tag for release

Nikolay Kim fafhrd at datacom.kz
Thu Sep 18 07:14:18 EDT 2008


Log message for revision 91233:
  tag for release

Changed:
  A   z3ext.lucene/tags/1.1.3/
  D   z3ext.lucene/tags/1.1.3/CHANGES.txt
  A   z3ext.lucene/tags/1.1.3/CHANGES.txt
  D   z3ext.lucene/tags/1.1.3/setup.py
  A   z3ext.lucene/tags/1.1.3/setup.py
  D   z3ext.lucene/tags/1.1.3/src/z3ext/lucene/browser/product.py
  A   z3ext.lucene/tags/1.1.3/src/z3ext/lucene/browser/product.py
  D   z3ext.lucene/tags/1.1.3/src/z3ext/lucene/server/vocabulary.py
  A   z3ext.lucene/tags/1.1.3/src/z3ext/lucene/server/vocabulary.py

-=-
Copied: z3ext.lucene/tags/1.1.3 (from rev 91102, z3ext.lucene/trunk)

Deleted: z3ext.lucene/tags/1.1.3/CHANGES.txt
===================================================================
--- z3ext.lucene/trunk/CHANGES.txt	2008-09-12 20:08:12 UTC (rev 91102)
+++ z3ext.lucene/tags/1.1.3/CHANGES.txt	2008-09-18 11:14:18 UTC (rev 91233)
@@ -1,30 +0,0 @@
-=======
-CHANGES
-=======
-
-1.1.2 (2008-03-25)
-------------------
-
-- fix: don't split query if it is string
-
-- code moved to svn.zope.org
-
-
-1.1.1 (2008-02-21)
-------------------
-
-- Use z3ext.layoutform for product configuration
-
-- Catch exception during server startup and indexing
-
-
-1.1.0 (2008-02-01)
-------------------
-
-- Added support for z3ext.product
-
-
-1.0.0 (2007-12-08)
-------------------
-
-- Initial release.

Copied: z3ext.lucene/tags/1.1.3/CHANGES.txt (from rev 91232, z3ext.lucene/trunk/CHANGES.txt)
===================================================================
--- z3ext.lucene/tags/1.1.3/CHANGES.txt	                        (rev 0)
+++ z3ext.lucene/tags/1.1.3/CHANGES.txt	2008-09-18 11:14:18 UTC (rev 91233)
@@ -0,0 +1,36 @@
+=======
+CHANGES
+=======
+
+1.1.3 (2008-09-18)
+------------------
+
+- Fixed LookupError
+
+
+1.1.2 (2008-03-25)
+------------------
+
+- fix: don't split query if it is string
+
+- code moved to svn.zope.org
+
+
+1.1.1 (2008-02-21)
+------------------
+
+- Use z3ext.layoutform for product configuration
+
+- Catch exception during server startup and indexing
+
+
+1.1.0 (2008-02-01)
+------------------
+
+- Added support for z3ext.product
+
+
+1.0.0 (2007-12-08)
+------------------
+
+- Initial release.

Deleted: z3ext.lucene/tags/1.1.3/setup.py
===================================================================
--- z3ext.lucene/trunk/setup.py	2008-09-12 20:08:12 UTC (rev 91102)
+++ z3ext.lucene/tags/1.1.3/setup.py	2008-09-18 11:14:18 UTC (rev 91233)
@@ -1,76 +0,0 @@
-##############################################################################
-#
-# Copyright (c) 2007 Zope Corporation 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.
-#
-##############################################################################
-"""Setup for z3ext.lucene package
-
-$Id: setup.py 1828 2008-03-21 12:51:56Z fafhrd91 $
-"""
-import sys, os
-from setuptools import setup, find_packages
-
-def read(*rnames):
-    return open(os.path.join(os.path.dirname(__file__), *rnames)).read()
-
-version = '1.2.0dev'
-
-
-setup(name='z3ext.lucene',
-      version=version,
-      description="Lucene zope index",
-      long_description=(
-          'Detailed Dcoumentation\n' +
-          '======================\n'
-          + '\n\n' +
-          read('src', 'z3ext', 'lucene', 'README.txt')
-          + '\n\n' +
-          read('CHANGES.txt')
-          ),
-      classifiers=[
-        'Development Status :: 5 - Production/Stable',
-        'Environment :: Web Environment',
-        'Intended Audience :: Developers',
-        'License :: OSI Approved :: Zope Public License',
-        'Programming Language :: Python',
-        'Natural Language :: English',
-        'Operating System :: OS Independent',
-        'Topic :: Internet :: WWW/HTTP',
-        'Framework :: Zope3'],
-      author='Nikolay Kim',
-      author_email='fafhrd91 at gmail.com',
-      url='http://z3ext.net/',
-      license='ZPL 2.1',
-      package_dir = {'':'src'},
-      packages=find_packages('src'),
-      namespace_packages=['z3ext'],
-      install_requires = ['setuptools',
-                          'zope.component',
-                          'zope.interface',
-                          'zope.publisher',
-                          'zope.schema',
-                          'zope.proxy',
-                          'zope.index',
-                          'zope.i18nmessageid',
-                          'zope.app.twisted',
-                          'zope.app.intid',
-                          'zope.app.appsetup',
-                          'zope.app.pagetemplate',
-                          'zope.app.container',
-                          'zope.app.catalog',
-                          ],
-      extras_require = dict(test=['zope.traversing',
-                                  'zope.app.testing',
-                                  'zope.testing',
-                                  ]),
-      include_package_data = True,
-      zip_safe = False
-      )

Copied: z3ext.lucene/tags/1.1.3/setup.py (from rev 91232, z3ext.lucene/trunk/setup.py)
===================================================================
--- z3ext.lucene/tags/1.1.3/setup.py	                        (rev 0)
+++ z3ext.lucene/tags/1.1.3/setup.py	2008-09-18 11:14:18 UTC (rev 91233)
@@ -0,0 +1,76 @@
+##############################################################################
+#
+# Copyright (c) 2007 Zope Corporation 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.
+#
+##############################################################################
+"""Setup for z3ext.lucene package
+
+$Id: setup.py 1828 2008-03-21 12:51:56Z fafhrd91 $
+"""
+import sys, os
+from setuptools import setup, find_packages
+
+def read(*rnames):
+    return open(os.path.join(os.path.dirname(__file__), *rnames)).read()
+
+version = '1.1.3'
+
+
+setup(name='z3ext.lucene',
+      version=version,
+      description="Lucene zope index",
+      long_description=(
+          'Detailed Dcoumentation\n' +
+          '======================\n'
+          + '\n\n' +
+          read('src', 'z3ext', 'lucene', 'README.txt')
+          + '\n\n' +
+          read('CHANGES.txt')
+          ),
+      classifiers=[
+        'Development Status :: 5 - Production/Stable',
+        'Environment :: Web Environment',
+        'Intended Audience :: Developers',
+        'License :: OSI Approved :: Zope Public License',
+        'Programming Language :: Python',
+        'Natural Language :: English',
+        'Operating System :: OS Independent',
+        'Topic :: Internet :: WWW/HTTP',
+        'Framework :: Zope3'],
+      author='Nikolay Kim',
+      author_email='fafhrd91 at gmail.com',
+      url='http://z3ext.net/',
+      license='ZPL 2.1',
+      package_dir = {'':'src'},
+      packages=find_packages('src'),
+      namespace_packages=['z3ext'],
+      install_requires = ['setuptools',
+                          'zope.component',
+                          'zope.interface',
+                          'zope.publisher',
+                          'zope.schema',
+                          'zope.proxy',
+                          'zope.index',
+                          'zope.i18nmessageid',
+                          'zope.app.twisted',
+                          'zope.app.intid',
+                          'zope.app.appsetup',
+                          'zope.app.pagetemplate',
+                          'zope.app.container',
+                          'zope.app.catalog',
+                          ],
+      extras_require = dict(test=['zope.traversing',
+                                  'zope.app.testing',
+                                  'zope.testing',
+                                  ]),
+      include_package_data = True,
+      zip_safe = False
+      )

Deleted: z3ext.lucene/tags/1.1.3/src/z3ext/lucene/browser/product.py
===================================================================
--- z3ext.lucene/trunk/src/z3ext/lucene/browser/product.py	2008-09-12 20:08:12 UTC (rev 91102)
+++ z3ext.lucene/tags/1.1.3/src/z3ext/lucene/browser/product.py	2008-09-18 11:14:18 UTC (rev 91233)
@@ -1,74 +0,0 @@
-##############################################################################
-#
-# Copyright (c) 2007 Zope Corporation 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: product.py 1828 2008-03-21 12:51:56Z fafhrd91 $
-"""
-from zope.component import getUtility
-from zope.traversing.browser import absoluteURL
-from zope.app.intid.interfaces import IIntIds
-from zope.app.pagetemplate import ViewPageTemplateFile
-
-from z3ext.layoutform import Fields, PageletEditForm
-from z3ext.statusmessage.interfaces import IStatusMessage
-
-from z3ext.lucene.i18n import _
-from z3ext.lucene.utils import indexObject
-from z3ext.lucene.interfaces import ILuceneIndex
-
-
-class LuceneProduct(PageletEditForm):
-
-    fields = Fields(ILuceneIndex)
-
-    label = _(u'Lucene Text Index')
-    description = _(u'Using lucene text search engine for full text searching.')
-
-    info = ViewPageTemplateFile('product.pt')
-
-    def getContent(self):
-        return getUtility(ILuceneIndex)
-
-    def cancelURL(self):
-        return absoluteURL(self.context.__parent__, self.request) + '/'
-
-    def getStatistics(self):
-        index = getUtility(ILuceneIndex)
-
-        try:
-            return {'documents': index.documentCount(),
-                    'words': index.wordCount()}
-        except:
-            return {'documents': 'Unknown', 'words': 'Unknown'}
-
-    def update(self):
-        super(LuceneProduct, self).update()
-
-        request = self.request
-
-        if request.has_key('advanced.reindexAll'):
-            intids = getUtility(IIntIds)
-            index = getUtility(ILuceneIndex)
-
-            for id in intids:
-                ob = intids.queryObject(id)
-                if ob is not None:
-                    indexObject(ob, index, intids)
-
-            IStatusMessage(request).add(_(u'Reindex process has been completed.'))
-
-    def render(self):
-        rendered = super(LuceneProduct, self).render()
-
-        return rendered + self.info()

Copied: z3ext.lucene/tags/1.1.3/src/z3ext/lucene/browser/product.py (from rev 91232, z3ext.lucene/trunk/src/z3ext/lucene/browser/product.py)
===================================================================
--- z3ext.lucene/tags/1.1.3/src/z3ext/lucene/browser/product.py	                        (rev 0)
+++ z3ext.lucene/tags/1.1.3/src/z3ext/lucene/browser/product.py	2008-09-18 11:14:18 UTC (rev 91233)
@@ -0,0 +1,71 @@
+##############################################################################
+#
+# Copyright (c) 2007 Zope Corporation 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: product.py 1828 2008-03-21 12:51:56Z fafhrd91 $
+"""
+from zope.component import getUtility
+from zope.traversing.browser import absoluteURL
+from zope.app.intid.interfaces import IIntIds
+from zope.app.pagetemplate import ViewPageTemplateFile
+
+from z3ext.layoutform import Fields, PageletEditForm
+from z3ext.statusmessage.interfaces import IStatusMessage
+
+from z3ext.lucene.i18n import _
+from z3ext.lucene.utils import indexObject
+from z3ext.lucene.interfaces import ILuceneIndex
+
+
+class LuceneProduct(PageletEditForm):
+
+    fields = Fields(ILuceneIndex)
+
+    label = _(u'Lucene Text Index')
+    description = _(u'Using lucene text search engine for full text searching.')
+
+    info = ViewPageTemplateFile('product.pt')
+
+    def getContent(self):
+        return getUtility(ILuceneIndex)
+
+    def getStatistics(self):
+        index = getUtility(ILuceneIndex)
+
+        try:
+            return {'documents': index.documentCount(),
+                    'words': index.wordCount()}
+        except:
+            return {'documents': 'Unknown', 'words': 'Unknown'}
+
+    def update(self):
+        super(LuceneProduct, self).update()
+
+        request = self.request
+
+        if request.has_key('advanced.reindexAll'):
+            intids = getUtility(IIntIds)
+            index = getUtility(ILuceneIndex)
+
+            for id in intids:
+                ob = intids.queryObject(id)
+                if ob is not None:
+                    indexObject(ob, index, intids)
+
+            IStatusMessage(request).add(_(u'Reindex process has been completed.'))
+
+    def render(self):
+        rendered = super(LuceneProduct, self).render()
+
+        return rendered + self.info()

Deleted: z3ext.lucene/tags/1.1.3/src/z3ext/lucene/server/vocabulary.py
===================================================================
--- z3ext.lucene/trunk/src/z3ext/lucene/server/vocabulary.py	2008-09-12 20:08:12 UTC (rev 91102)
+++ z3ext.lucene/tags/1.1.3/src/z3ext/lucene/server/vocabulary.py	2008-09-18 11:14:18 UTC (rev 91233)
@@ -1,33 +0,0 @@
-##############################################################################
-#
-# Copyright (c) 2007 Zope Corporation 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: vocabulary.py 671 2007-12-07 18:20:27Z fafhrd91 $
-"""
-
-from interfaces import ILucene
-from zope.component import getUtilitiesFor
-from zope.schema.vocabulary import SimpleTerm, SimpleVocabulary
-
-
-class LuceneVocabulary(object):
-
-    def __call__(self, context):
-        terms = []
-        for name, utility in getUtilitiesFor(ILucene):
-            terms.append((str(utility),
-                          SimpleTerm(utility.name, utility.name, str(utility))))
-
-        terms.sort()
-        return SimpleVocabulary([term for t, term in terms])

Copied: z3ext.lucene/tags/1.1.3/src/z3ext/lucene/server/vocabulary.py (from rev 91232, z3ext.lucene/trunk/src/z3ext/lucene/server/vocabulary.py)
===================================================================
--- z3ext.lucene/tags/1.1.3/src/z3ext/lucene/server/vocabulary.py	                        (rev 0)
+++ z3ext.lucene/tags/1.1.3/src/z3ext/lucene/server/vocabulary.py	2008-09-18 11:14:18 UTC (rev 91233)
@@ -0,0 +1,42 @@
+##############################################################################
+#
+# Copyright (c) 2007 Zope Corporation 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: vocabulary.py 671 2007-12-07 18:20:27Z fafhrd91 $
+"""
+
+from interfaces import ILucene
+from zope.component import getUtilitiesFor
+from zope.schema.vocabulary import SimpleTerm, SimpleVocabulary
+
+
+class Vocabulary(SimpleVocabulary):
+
+    def getTerm(self, value):
+        try:
+            return super(Vocabulary, self).getTerm(value)
+        except LookupError:
+            return self._terms[0]
+
+
+class LuceneVocabulary(object):
+
+    def __call__(self, context):
+        terms = []
+        for name, utility in getUtilitiesFor(ILucene):
+            terms.append((str(utility),
+                          SimpleTerm(utility.name, utility.name, str(utility))))
+
+        terms.sort()
+        return Vocabulary([term for t, term in terms])



More information about the Checkins mailing list