Patch for TypeError in

Jelmer Vernooij jelmer at
Mon Feb 8 02:59:55 MST 2010

Hi Ricardo,

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
Type: application/pgp-signature
Size: 836 bytes
Desc: This is a digitally signed message part
URL: <>

More information about the samba-technical mailing list