Hi Gabriel,

Could you provide something like a github gist that I illustrates the problem? at first sight, nothing seems wrong with this model hierarchy.

Thanks,
Burak

On Mon, 30 Jul 2012, Gabriel Monnerat wrote:

Hello all,

I am trying to use use spyne in my model but I am get failures when I used
one Array inside another Array. i.e

class Number(ComplexModel):

   number = Integer

class Address(ComplexModel):

  street_name = String
  number = Integer
  telephone = Array(Number)

class User(ComplexModel):

  name = String
  address = Array(Address)

When I use this model case I got something like:

TypeNotFound: Type not found: 'number'

And when I print client.factory.create('User'), the structure to telephone
is not created.

Am I doing something stupid? I found on history about ComplexModel usage
but not using many levels of Arrays

Best Regards,

--
Gabriel M. Monnerat

_______________________________________________
Soap mailing list
[email protected]
http://mail.python.org/mailman/listinfo/soap

Reply via email to