JoseLuis de la Rosa Triviño wrote:
[...]
UnicodeDecodeError: 'ascii' codec can't decode byte 0xed in position 10:
ordinal not in range(128)
/opt/zope2.9/lib/python/Products/PluginIndexes/common/UnIndex.py(207)insertForwardIndexEntry()
-> indexRow = self._index.get(entry, _marker)
(Pdb) entry
u'Carlos Gonzalez created aaaaaaaaaaaaaa'
Your title is an Unicode string; you could try converting it to a string
in your string:
title = mcat('title_' + btool.ptool.CONTENTS_ID)
+ title = title.encode('iso8859-15')
docDef = {TITLE:title, DESCRIPT:'', HIDDE:0}
(perhaps testing first that title is really unicode)
yves
_______________________________________________
cps-devel mailing list
http://lists.nuxeo.com/mailman/listinfo/cps-devel