#29 elements in complex types lost if wildcard present

PyXB 0.5.1
closed
None
fixed
Component model
major
PyXB 0.5.0
defect
2009-07-11
2009-07-08
No

If a wildcard element appears in a sequence or choice model group, all other elements will be dropped from the plurality data.

Discussion

  • Peter A. Bigot

    Peter A. Bigot - 2009-07-08
    • status changed from new to accepted

    Fix this by changing pyxb/xmlschema/structures.py around like 989, by changing:

       elif isinstance(component, Wildcard):
          pass
    

    to

       elif isinstance(component, Wildcard):
          self.append({})
    
     
  • Peter A. Bigot

    Peter A. Bigot - 2009-07-09
    • status changed from accepted to closed
    • resolution set to fixed

    Fixed in [1455]

     
  • Peter A. Bigot

    Peter A. Bigot - 2009-07-11

    There are still ways to get empty lists; a better solution is to add this at the end of the _ _ setFromComponent method

            # Elements get lost if there's a result set that doesn't have any
            # documents in it.
            if 0 == len(self):
                self.append({})
    
     

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks