Roundup Tracker - Issues

Message6779

Author ezio.melotti
Recipients ezio.melotti, pefu, richard, rouilj
Date 2019-10-26.19:32:06
Message-id <1572118326.28.0.519567946327.issue1344046@roundup.psfhosted.org>
In-reply-to
msg2046 suggests to change the find() function in roundup/backends/indexer_rdbms.py to decode the words before passing them to the db (implying the wordlist initially contains bytes).  

As in my previous message, in Python 3 the word list should already be a list of unicode strings, but on Python 2 it might be either a list of bytes, or a list of unicode strings.  Decoding the bytes with b2s in Python 2 should be ok, as long as the db can accept unicode.  Tests should be added to ensure that find() works with both bytes and unicode in Python 2 and that it handles non-ascii words correctly on both versions.
History
Date User Action Args
2019-10-26 19:32:06ezio.melottisetmessageid: <1572118326.28.0.519567946327.issue1344046@roundup.psfhosted.org>
2019-10-26 19:32:06ezio.melottisetrecipients: + ezio.melotti, richard, rouilj, pefu
2019-10-26 19:32:06ezio.melottilinkissue1344046 messages
2019-10-26 19:32:06ezio.melotticreate