Hi Dave,
It looks like the Docs are out of date.
The correct method signature for "to_parent_element" is
to_parent_element(cls, value, tns, parent_elt, name='retval')
So the example should look more like:
a = Attachment(data="this is my binary data")
parent_element = et.Element("parent")
Attachment.to_parent_element(a, "tns", parent_element)
print et.tostring(parent_element)
Sorry for the delay and I hope this helps.
On Tue, Apr 5, 2011 at 7:29 PM, Dave Dodd <[email protected]> wrote:
> Gday folks,
>
> I have run into an error in the soaplib 2.0.0 beta documentation's examples
> regarding Binary Files.
>
> The first two examples on the page
> http://soaplib.github.com/soaplib/2_0/pages/binaryfiles.html fail with the
> following error reported:
>
> Traceback (most recent call last):
> File "<stdin>", line 1, in <module>
> TypeError: wrapper() takes at least 4 arguments (2 given)
>
> I tried just executing:
>
>>>> Attachment.to_parent_element(a)
>
> And the same error is reported. Can anyone clarify what is going on please ?
>
> --Dave
> _______________________________________________
> Soap mailing list
> [email protected]
> http://mail.python.org/mailman/listinfo/soap
>
_______________________________________________
Soap mailing list
[email protected]
http://mail.python.org/mailman/listinfo/soap