Skip to content

Draft: fix hasData call

Xiaowu Zhang requested to merge xiaowu.zhang/erp5:fix/accessor into master

before https://lab.nexedi.com/nexedi/erp5/-/commit/c7cb731efaa40c5d621b2b977403c8f52d342661, data is stored as string, as displayed like the image below

image

after the changes, when call hasData on such object , it return True event the data is juste ''

The reason is because '' is not in the _null list

maybe we should add '' in the list to keep compatibility, what do you think ?

@jerome @kazuhiko @arnau

Edited by Xiaowu Zhang

Merge request reports