I'm playing with attribute_of
and spyne 2.10 (very glad it's out). Let's consider following model:
class Product(ComplexModel):
id = complex.XmlAttribute(primitive.Uuid)
edition = primitive.Unicode
edition_id = complex.XmlAttribute(primitive.Uuid, attribute_of='edition')
That gives results like:
<product id="00000000-0000-0000-0000-000000000000">
<edition edition_id="00000000-0000-0000-0000-000000000000">My edition</edition>
</product>
How to customize edition_id
's name for results like <edition id="..."/>
?