Added patch for lexicon problems
1 parent 4dea63b commit e076e5baf5b79abf07385a41a3d06a4defd22b5e
@Alex Tucker Alex Tucker authored on 12 Jun 2003
Showing 2 changed files
View
7
documentlibrary.spec
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
Packager: Alex Tucker <alex@floop.org.uk>
libraries.
 
%prep
%setup -n %{name}
%patch -p 1
 
%build
 
%install
%defattr(-,root,root)
/usr/share/zope/lib/python/Products/%{name}
 
%changelog
* Thu Jun 12 2003 Alex Tucker <alex@floop.org.uk>
- Fixed problems with using old Catalog interface with lexicons
 
* Wed Jun 11 2003 Alex Tucker <alex@floop.org.uk>
- Initial build
 
 
View
33
fix_lexicon.patch 0 → 100644
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))