Steve,
I've been on vaction and just got caught up on this.
Your fix here is very close. The Any object get_child() and get_attribute() are
overridden here to match anything and return an Any object which continues to match
anything (and so on, and so on ...). Since the caller may interrogate the returned
object, I'd rather it was an Any object rather then None just to be on the safe side.
I've committed this fix (
https://fedorahosted.org/suds/changeset/502) and hope it will
meets you needs.
Please let me know if this works for you.
Regards,
Jeff
Steve Chernyak 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.
------------------------------------------------------------------------
_______________________________________________
fedora-suds-list mailing list
fedora-suds-list(a)redhat.com
https://www.redhat.com/mailman/listinfo/fedora-suds-list