Menu

#73 improper references to namespace in namespace group

PyXB 1.1.1
closed
None
fixed
Generation Model
major
PyXB 1.1.0
defect
2010-01-28
2010-01-27
No

When generating a binding for a namespace that imports the OpenGIS GML 3.2 namespace and creates a type referencing the gml:id attribute, the code generated for the corresponding attribute improperly references an identifier _Namespace_gml which is in the private module, rather than the gml_3_2.Namespace public reference.

Discussion

  • Peter A. Bigot

    Peter A. Bigot - 2010-01-28
    • status changed from new to accepted

    The problem is that the name_expr for the attribute use is calculated and stored in the OpenGIS archive, and that name is not valid in other contexts. We really need two name_expr values: one within the module, and one for global reference.

     
  • Peter A. Bigot

    Peter A. Bigot - 2010-01-28
    • status changed from accepted to closed
    • resolution set to fixed

    Fixed in [8d0af3495665]: name_expr is no longer stored in the _NamedComponent_mixin _templateMap() field. It is recalculated at each point it is generated.

    Not that anyone will remember to look here, but it's likely there are additional problems like this still present.

     
MongoDB Logo MongoDB