Browse Source

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 <vchen@datapower.com>
Remove Send()'s kwargs out of _args list <efrain@bogotron.net>
main
Rich Salz 19 years ago
parent
commit
acae87b7c3
1 changed files with 4 additions and 2 deletions
  1. +4
    -2
      XMLSchema.py

+ 4
- 2
XMLSchema.py View File

@@ -2288,6 +2288,7 @@ class ComplexType(XMLSchemaComponent,\
XMLSchemaComponent.__init__(self, parent) XMLSchemaComponent.__init__(self, parent)
self.annotation = None self.annotation = None
self.content = None self.content = None
self.facets = []
self.attr_content = None self.attr_content = None


def isMixed(self): def isMixed(self):
@@ -2315,6 +2316,7 @@ class ComplexType(XMLSchemaComponent,\
def fromDom(self, node): def fromDom(self, node):
self.setAttributes(node) self.setAttributes(node)
contents = self.getContents(node) contents = self.getContents(node)
facets = {}
indx = 0 indx = 0
num = len(contents) num = len(contents)
@@ -2810,8 +2812,8 @@ class SimpleType(XMLSchemaComponent,\
content.append(AnonymousSimpleType(self)) content.append(AnonymousSimpleType(self))
content[-1].fromDom(contents[indx]) content[-1].fromDom(contents[indx])
elif component in RestrictionMarker.facets: 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: else:
raise SchemaError, 'Unknown component (%s)' %(i.getTagName()) raise SchemaError, 'Unknown component (%s)' %(i.getTagName())
self.content = tuple(content) self.content = tuple(content)


Loading…
Cancel
Save