From acae87b7c373339268ad9f15e61004939659f6ab Mon Sep 17 00:00:00 2001 From: Rich Salz Date: Tue, 16 Aug 2005 19:20:48 +0000 Subject: [PATCH] Add Typecode.typed to control xsi:type data system-wide For cookies, getheaders() is Python 2.3; use getallmatchingheaders In SoapWriter, put nsdecls on body, not envelope Record facets (restrictions) in XMLSchema.py Remove Send()'s kwargs out of _args list --- XMLSchema.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/XMLSchema.py b/XMLSchema.py index 90ba767..9db0d70 100755 --- a/XMLSchema.py +++ b/XMLSchema.py @@ -2288,6 +2288,7 @@ class ComplexType(XMLSchemaComponent,\ XMLSchemaComponent.__init__(self, parent) self.annotation = None self.content = None + self.facets = [] self.attr_content = None def isMixed(self): @@ -2315,6 +2316,7 @@ class ComplexType(XMLSchemaComponent,\ def fromDom(self, node): self.setAttributes(node) contents = self.getContents(node) + facets = {} indx = 0 num = len(contents) @@ -2810,8 +2812,8 @@ class SimpleType(XMLSchemaComponent,\ content.append(AnonymousSimpleType(self)) content[-1].fromDom(contents[indx]) elif component in RestrictionMarker.facets: - #print_debug('%s class instance, skipping %s' %(self.__class__, component)) - pass + facets[component] = contents[indx] + self.facets.append(facets) else: raise SchemaError, 'Unknown component (%s)' %(i.getTagName()) self.content = tuple(content)