In both cases, when I expose the functions neither m_list nor item is empty (I tried print db(...).select(...)). The problem doesn't occur in the first function, where m_list can contain more than one row, the problem occurs in the second function, where item contains one row.
Furthermore the second function did work in web2py version 1.76.5, and it still does, I just tested that. I am currently working with web2py 1.87.3, so something must have changed between these two versions. Kind regards, Annet.