enhance detection/handling of pyxb.BIND
Brought to you by:
pabigot
When an inner element consists of a sequence of elements with anonymous complex type, the following should work:
for subr in header['subr']:
rv.structures.subrecord.append(pyxb.BIND(**subr))
It doesn't, because the base list append does not validate the object being added and therefore does not convert it to a binding instance. The problem is revealed only at the point of validation or conversion to XML text, at which point the pyxb.BIND instance cannot be processed.
commit 5a89057f41c25e71093b4462c7ee88523bf7438b
Author: Peter A. Bigot <pab@‌>
Date: Sun Dec 16 10:35:15 2012 -0600