Browse Source

Modified Files:

XMLSchema.py

 ----------------------------------------------------------------------
   fixed an obvious bug, added a SchemaError class so it can actually
be thrown.


 ----------------------------------------------------------------------
main
Joshua Boverhof 21 years ago
parent
commit
0b20903c8e
1 changed files with 3 additions and 1 deletions
  1. +3
    -1
      XMLSchema.py

+ 3
- 1
XMLSchema.py View File

@@ -41,6 +41,8 @@ class SchemaReader:
finally: file.close()
return schema

class SchemaError(Exception):
pass

class XMLSchema:
# This is temporary, for the benefit of WSDL until the real thing works.
@@ -92,7 +94,7 @@ class realXMLSchema:
'blockDefault', 'finalDefault', 'version', 'id'
):
value = DOM.getAttr(schema, attrname, None, None)
if attr is not None:
if value is not None:
setattr(self, attrname, value)




Loading…
Cancel
Save