Skip to content Skip to sidebar Skip to footer

How To Implement Abstract Model In Spyne

I need to implement an abstract model using Spyne. In fact, let's say - as a simple example - that I want to manage a garage business. I then have the following classes: class Vehi

Solution 1:

With Spyne 2.12.1-beta, output polymorphism should work (when enabled for the output protocol) with the Array(Vehicle) syntax.

Please see working example here: https://github.com/arskom/spyne/blob/a2d0edd3be5bc0385548f5212b7b4b6d674fd610/examples/xml/polymorphic_array.py

Post a Comment for "How To Implement Abstract Model In Spyne"