diff --git a/themis/fields/vocabs.py b/themis/fields/vocabs.py index b6184ba..e280e09 100644 --- a/themis/fields/vocabs.py +++ b/themis/fields/vocabs.py @@ -248,7 +248,15 @@ class SubjectsSource(object): implements(IContextSourceBinder) def __init__(self): - # XXX get this list from the catalog + + if ITabellioSettings: + settings = component.getUtility(IRegistry).forInterface(ITabellioSettings, False) + topics = settings.topics + if topics: + self.terms = [x.strip() for x in topics.splitlines() if x] + return + + # fallback on static list self.terms = [ u"Action sociale", u"Budget",