[spyne] Spyne and complex model tree structures

Marduk marduk666pl at gmail.com
Tue Jul 5 13:19:02 UTC 2016


Hey,

I have a question regarding Spyne. I have complex type which is a tree
structure containing nodes which contains other nodes etc. But in spyne you
must specify return type for example:

class TreeNode(ComplexModel):
 _type_info = [
       ('Children', Array(TreeNode))
]

But it's impossible to declare Array(TreeNode) from inside TreeNode because
TreeNode isn't visible from it self. So is it possible to somehow declare
this complex type and send it to spyne?

Thanks
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.spyne.io/archives/people/attachments/20160705/f33e792a/attachment.html>


More information about the people mailing list