Menu

#89 mistakenly attempt to generate enumerations in extended type

PyXB 1.1.3
closed
None
fixed
Generation Model
major
PyXB 1.1.2
defect
2011-05-21
2010-08-20
No

If a simple type with enumeration restrictions is further restricted without changing the enumeration list, the sub-type attempts to re-generate the parent type enumerations resulting in an error.

Two problems:

1. Enumerations should only be generated for the owner datatype.

2. Need to figure out what the facets on the restricted type should be: e.g., are the enumeration values listed in the base type still acceptable. See section 3.14.6/Derivation Valid (Restriction Simple)/1.3.2

Discussion

  • Peter A. Bigot

    Peter A. Bigot - 2010-08-20
    • status changed from new to accepted

    (1) has been fixed with the patch in next. (2) requires research.

     
  • Peter A. Bigot

    Peter A. Bigot - 2011-05-21
    • status changed from accepted to closed
    • resolution set to fixed
    • milestone changed from PyXB 1.1.2 to PyXB 1.1.3

    Merged in changeset:19bc3b787f0083b45820edb216e2fc93f80b16ad

    commit cfd015ced4cf45fe2675f6ce2f80f98714440962
    Date: Sat May 21 10:55:01 2011 -0500

    trac/89: mistakenly attempt to generate enumerations in extended type

    Add a standalone unit test, and a verbose suite that verifies that it's the
    presence of an enumeration facet in the restricted type that affects
    enumeration inheritance.

     
MongoDB Logo MongoDB