[Soap-Python] Creating a "Tree" response with spyne
Burak Arslan
burak.arslan at arskom.com.tr
Tue Jan 8 18:38:17 CET 2013
On 01/08/13 18:54, Ken Prows wrote:
> Unfortunately, Category._type_info['children'] = Array(Category) dies with:
Hi,
Sorry but I can't reproduce this. Here's the test:
https://github.com/plq/spyne/commit/b61cdbcec4245381dc9b98cb2db88ccf03298c6f
I see that you're running Spyne trunk, (2.10 isn't released yet) can you
try this test after either getting the latest code from my fork or
reverting back to a stable Spyne?
Here are the instructions for testing on a stable Spyne:
git clone git://github.com/arskom/spyne
cd spyne
git checkout spyne-2.9.3
python -c "import spyne; assert spyne.__file__ == 'spyne/__init__.py'" && \
spyne/test/model/test_complex.py
TestSelfRefence.test_self_referential_array_workaround
Here's what I see:
==============
{'Category': {'children': {'Category': [{'children': {}, 'id': 0},
{'children': {}, 'id': 1}]},
'id': None}}
.
----------------------------------------------------------------------
Ran 1 test in 0.001s
OK
==============
Thanks,
Burak
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/soap/attachments/20130108/2edb6779/attachment.html>
More information about the Soap
mailing list