senaite / senaite.core

Enterprise Open Source Laboratory System (LIMS)
https://senaite.com
GNU General Public License v2.0
254 stars 145 forks source link

Fix getAnalyses returns a LazyMap instead of a list #2602

Closed xispa closed 3 months ago

xispa commented 3 months ago

Description of the issue/feature this PR addresses

This Pull Request makes ARAnalyses.get to return a list when full_objects=False via DataManager (see https://github.com/senaite/senaite.core/pull/2595)

Current behavior before PR

(Pdb++) type(sample.getAnalyses())
<class 'ZTUtils.Lazy.LazyMap'>

Desired behavior after PR is merged

(Pdb++) type(sample.getAnalyses())
<type 'list'>

-- I confirm I have tested this PR thoroughly and coded it according to PEP8 and Plone's Python styleguide standards.