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.py4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/collective/dms/thesaurus/vocabulary.py b/src/collective/dms/thesaurus/vocabulary.py
index 3dd3380..1055050 100644
--- a/src/collective/dms/thesaurus/vocabulary.py
+++ b/src/collective/dms/thesaurus/vocabulary.py
@@ -63,10 +63,8 @@ class KeywordFromSameThesaurusSource(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):