test if thesaurus if present

This commit is contained in:
Vincent Fretin 2013-09-03 15:42:30 +02:00
parent 9a30d5d538
commit 970a5c53b7
1 changed files with 3 additions and 0 deletions

View File

@ -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: