Patch for TypeError in shares.py
jelmer at samba.org
Mon Feb 8 02:59:55 MST 2010
On Sun, 2010-02-07 at 17:35 +0000, Ricardo Jorge wrote:
> Hi everyone.
> When trying to obtain the length of a SharesContainer object, which
> has __len__ defined, the script would exit with the error "Fix for
> TypeError: argument of type 'LoadParm' is not iterable"
> It can be fixed by calling the services() method (which is partof
> LoadParm) which returns a List item.
Thanks for the test and the patch. While we had tests for this method,
it seems like our mock LoadParm object implemented __contains__ while
the actual LoadParm doesn't.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Size: 836 bytes
Desc: This is a digitally signed message part
More information about the samba-technical