AttributeError on lexicon when creating new DocumentLibrary
Status: Beta
Brought to you by:
cduncan
I installed DocumentLibrary version 1.0 rc 1 as
instructed. I'm running Zope 2.6.1 on Windows 2000.
When I attempt to create a new DocumentLibrary
instance I get an AttributeException on
CatalogPlus.lexicon
I looked into the code and Catalog.py has a comment:
def __init__(self, vocabulary=None, brains=None):
# Catalogs no longer care about vocabularies and
lexicons
# so the vocabulary argument is ignored. (Casey)
I changed CatalogPlus to just set lexicon to None to get
around the problem, but I wont be able to reuse
vocabularies.
I can't see how this works with Zope version 1.6.1
unless there is some other dependancy out there
Logged In: YES
user_id=861958
Has the same problem and did the following as Ben Galewsky
had mentioned. Not sure what other problems it may create
but i did allow me to a DocumentLibrary Instance
CatalogPlus.py
Line:154
def getLexicon(self):
#lexicon = self.lexicon
lexicon = None