handle absence of thesaurus (bis)
This commit is contained in:
parent
da58a1a6c2
commit
37137022dd
|
@ -52,6 +52,8 @@ class ThesaurusKeywordsWidget(SequenceWidget):
|
|||
@property
|
||||
def js(self):
|
||||
thesaurus = utils.get_thesaurus_object(self.context)
|
||||
if thesaurus is None:
|
||||
return ''
|
||||
thesaurus_path = '/'.join(thesaurus.getPhysicalPath())
|
||||
return JS_TEMPLATE % dict(
|
||||
thesaurus_url=thesaurus_path
|
||||
|
|
Reference in New Issue