I have an add-on working on plone 5.2.4 with py27 that relies on collective.dexteritytextindexer 2.2.1 for a searchable field thesis:
...
dexteritytextindexer.searchable("thesis")
thesis = namedfile.NamedBlobFile(
title=_(u'label_thesis', default=u'Thesis'),
description=_(u'help_thesis',
default=u"Add your thesis file."),
required=False,
)
...
I migrated this addon to py37. Collective.dexteritytextindexer 2.2.4 has been installed. When I tried to add a new object with a pdf thesis, I got the following error message:
Collective module.dexteritytextindexer.indexer, line 94, in dynamic_searchable_text_indexer
AssertionError: Expected converted value of IDExterityTextIndexFieldConverter to be a str
After debugging I found that when changing line 128 of collective.dexteritytextindexer/converters.py at master · collective/collective.dexteritytextindexer · GitHub from
return datastream.getData()
to return str(datastream.getData())
it is possible to add a new dexterity object with the pdf thesis.
What are the procedures so that the maintainers of the colective.dexteritytextindexer can validate this conversion to str or perform a more adequate one and launch a new version of the add-on?