diff --git a/documentlibrary.spec b/documentlibrary.spec index d0bd6ed..6d7001c 100644 --- a/documentlibrary.spec +++ b/documentlibrary.spec @@ -1,9 +1,10 @@ Summary: A Zope product used to create full-text searchable and browsable document libraries Name: DocumentLibrary Version: 1.0rc1 -Release: 1 +Release: 2 URL: http://www.zope.org/Members/Kaivo/%{name} Source0: http://www.zope.org/Members/Kaivo/%{name}/%{name}-%{version}.tgz +Patch0: fix_lexicon.patch License: http://www.zope.org/Members/Kaivo/DocumentLibrary/License Group: Development/Web Applications BuildRoot: %{_tmppath}/%{name}-root @@ -17,6 +18,7 @@ %prep %setup -n %{name} +%patch -p 1 %build @@ -36,6 +38,9 @@ /usr/share/zope/lib/python/Products/%{name} %changelog +* Thu Jun 12 2003 Alex Tucker +- Fixed problems with using old Catalog interface with lexicons + * Wed Jun 11 2003 Alex Tucker - Initial build diff --git a/fix_lexicon.patch b/fix_lexicon.patch new file mode 100644 index 0000000..b855849 --- /dev/null +++ b/fix_lexicon.patch @@ -0,0 +1,32 @@ +diff -uNr DocumentLibrary-1.0rc1-orig/CatalogPlus.py DocumentLibrary-1.0rc1/CatalogPlus.py +--- DocumentLibrary-1.0rc1-orig/CatalogPlus.py 2002-01-18 04:38:36.000000000 +0000 ++++ DocumentLibrary-1.0rc1/CatalogPlus.py 2003-06-12 10:03:13.000000000 +0100 +@@ -152,6 +152,7 @@ + self.uncatalogObject(uid) + + def getLexicon(self): ++ return None + lexicon = self.lexicon + + if type(lexicon) == type(''): +diff -uNr DocumentLibrary-1.0rc1-orig/DocumentStore.py DocumentLibrary-1.0rc1/DocumentStore.py +--- DocumentLibrary-1.0rc1-orig/DocumentStore.py 2002-01-18 04:38:37.000000000 +0000 ++++ DocumentLibrary-1.0rc1/DocumentStore.py 2003-06-12 10:03:03.000000000 +0100 +@@ -146,7 +146,7 @@ + + for name, index_class in self._defaultCatalogIndexes: + if index_class is TextIndex: +- self.Catalog.addIndex(name, index_class(name, lexicon=lexicon)) ++ self.Catalog.addIndex(name, index_class(name)) + else: + self.Catalog.addIndex(name, index_class(name)) + +@@ -452,7 +452,7 @@ + + if index_class is TextIndex: + self.Catalog.addIndex(name, +- index_class(name, lexicon=self.Catalog.getLexicon())) ++ index_class(name)) + else: + self.Catalog.addIndex(name, index_class(name)) +