Menu

#69 enhance detection/handling of pyxb.BIND

PyXB 1.2.1
closed
None
fixed
Content model
major
PyXB 1.1.0
defect
2012-12-16
2009-12-22
No

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.

Discussion

  • Peter A. Bigot

    Peter A. Bigot - 2010-01-28
    • milestone changed from PyXB 1.1.1 to PyXB 1.1.2
     
  • Peter A. Bigot

    Peter A. Bigot - 2010-05-30
    • milestone changed from PyXB 1.1.2 to PyXB 1.1.3
     
  • Peter A. Bigot

    Peter A. Bigot - 2011-09-09
    • milestone changed from PyXB 1.1.3 to PyXB 1.1.4
     
  • Peter A. Bigot

    Peter A. Bigot - 2012-06-13
    • milestone changed from PyXB 1.1.4 to PyXB 1.1.5
     
  • Peter A. Bigot

    Peter A. Bigot - 2012-08-30
    • milestone changed from PyXB 1.1.5 to PyXB 1.2.0
     
  • Peter A. Bigot

    Peter A. Bigot - 2012-11-08
    • milestone changed from PyXB 1.2.0 to PyXB 1.2.1
     
  • Peter A. Bigot

    Peter A. Bigot - 2012-12-16
    • status changed from new to closed
    • resolution set to fixed

    commit 5a89057f41c25e71093b4462c7ee88523bf7438b
    Author: Peter A. Bigot <pab@‌>
    Date: Sun Dec 16 10:35:15 2012 -0600

    trac/69: enhance detection/handling of pyxb.BIND

    The solution handles more than just pyxb.BIND: an adapter is used to
    validate items as they are added to the plural element container.

     
MongoDB Logo MongoDB