On Mon, Apr 27, 2009 at 8:14 AM, Steve Chernyak mrrothstein@gmail.com wrote:
Hi Michael,
I've checked out the latest version, but still get the same error. The change I'm making is in the get_attribute method of Any class. It looks like this in trunk: def get_attribute(self, name): """ Get (find) a I{non-attribute} attribute by name. @param name: A attribute name. @type name: str @return: The requested attribute. @rtype: L{SchemaObject} """ return self
I'm changing it to: def get_attribute(self, name): """ Get (find) a I{non-attribute} attribute by name. @param name: A attribute name. @type name: str @return: The requested (child, ancestry). @rtype: (L{SchemaObject}, [L{SchemaObject},..]) """ return (None, [])
This seems to work. However, I'm not sure if this just ignores the actual problem.
Thanks
Did't reply to all first time.
Ah, sorry. I must have been looking at get_child. Perhaps just remove the get_attribute method from the Any class altogether so it uses the get_attribute method on its parent class? (see suds/xsd/sxbase.py:129)
Not sure if thats the right behavior, but it will at least get you the right data type.
Sorry I couldn't be more help.