On 07/13/12 15:57, Jussi Rasinmäki wrote:
But wouldn't using this

InvalidValues = Array(InvalidValue)

instead of the more convoluted way of
     InvalidValues = InvalidValues
...
    InvalidValue = InvalidValue.customize(min_occurs='1',
                                           max_occurs='unbounded')
mean that I can't set the requirement that InvalidValues has to
contain at least one InvalidValue child?


Just do Array(InvalidValue.customize(min_occurs=1))

If you leave max_occurs of a class inside Array() alone, it's set to infinity. If you set it to something else, it's left untouched.

I'd think this'd be obvious. Any suggestions as to how I can improve spyne docs on this matter?

Best,
Burak

_______________________________________________
Soap mailing list
[email protected]
http://mail.python.org/mailman/listinfo/soap

Reply via email to