test if thesaurus if present
This commit is contained in:
parent
9a30d5d538
commit
970a5c53b7
|
@ -73,6 +73,9 @@ class ThesaurusKeywordsWidget(SequenceWidget):
|
|||
|
||||
def displayItems(self):
|
||||
thesaurus = utils.get_thesaurus_object(self.context)
|
||||
if thesaurus is None:
|
||||
return []
|
||||
|
||||
thesaurus_path = '/'.join(thesaurus.getPhysicalPath())
|
||||
value = []
|
||||
for token in self.value:
|
||||
|
|
Reference in New Issue