[spyne] Array in Django SOAP webservice

Burak Arslan burak.arslan at arskom.com.tr
Thu Jun 18 11:11:12 UTC 2015


Hello,

On 06/18/15 13:27, carlos.palomares.external at airbus.com wrote:
>
> Hi everybody,
>
>  
>
> I have a problem with the type of Array in spyne, I am working with
> Django and my server is apache with wsgi.py in windows. I have these
> structures:
>
>  <snip>
>
>  
>
> This line is all time making error in my system:
>
> 'NoneType' object has no attribute 'append'
>
> [Thu Jun 18 11:41:15 2015] [error] 'NoneType' object has no attribute
> 'append' (<type 'exceptions.AttributeError'>)
>
>  
>
> I don’t what is the problem, the kind of data, the Array type
> maybe………….. I don’t know anyone can help me?
>
>

You must initialize the data with an empty array first, just like any
other Python object.

Try:

    resData = ResponseDataQuery(incidences=[])

hth,
burak
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.spyne.io/archives/people/attachments/20150618/cada61f4/attachment.html>


More information about the people mailing list