summaryrefslogtreecommitdiffstats
path: root/src/collective/dms/thesaurus/vocabulary.py
diff options
context:
space:
mode:
Diffstat (limited to 'src/collective/dms/thesaurus/vocabulary.py')
-rw-r--r--src/collective/dms/thesaurus/vocabulary.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/collective/dms/thesaurus/vocabulary.py b/src/collective/dms/thesaurus/vocabulary.py
index 62e6ab3..3dd3380 100644
--- a/src/collective/dms/thesaurus/vocabulary.py
+++ b/src/collective/dms/thesaurus/vocabulary.py
@@ -32,9 +32,8 @@ class SimpleThesaurusSource(object):
catalog = getToolByName(context, 'portal_catalog')
results = catalog(portal_type='dmskeyword',
path={'query': thesaurus_path,'depth': 1})
- keywords = [x.getObject() for x in results]
keyword_terms = [SimpleVocabulary.createTerm(
- x.id, x.id, x.title) for x in keywords]
+ x.getId, x.getId, x.Title) for x in results]
return SimpleVocabulary(keyword_terms)
def __iter__(self):