Fix ids of terms for ministries and contacts
This commit is contained in:
parent
36fc1f8cf5
commit
4c724e3e13
|
@ -79,7 +79,7 @@ class MinistriesSource(object):
|
|||
def format_ministry(x):
|
||||
return '%s %s (ministre)' % (x.lastname, x.firstname)
|
||||
ministries_terms = [SimpleVocabulary.createTerm(
|
||||
format_ministry(x), 'ministry:'+x.id, format_ministry(x))
|
||||
'ministry:'+x.id, 'ministry:'+x.id, format_ministry(x))
|
||||
for x in ministries]
|
||||
college_term = SimpleVocabulary.createTerm(
|
||||
'ministry:college','ministry:college', u'Collège')
|
||||
|
@ -135,7 +135,7 @@ class ContactsVocabulary(SimpleVocabulary):
|
|||
portal.contacts.invokeFactory(
|
||||
'themis.datatypes.contact', new_id, title=token)
|
||||
|
||||
return self.createTerm(token, 'contact:' + new_id, token)
|
||||
return self.createTerm('contact:'+new_id, 'contact:' + new_id, token)
|
||||
|
||||
def search(self, qs):
|
||||
q = qs.lower()
|
||||
|
|
Reference in New Issue