Browse Source

M XMLSchema.py

-- added arg for line SchemaError string
main
Joshua Boverhof 19 years ago
parent
commit
d0f1bdf78d
1 changed files with 2 additions and 1 deletions
  1. +2
    -1
      XMLSchema.py

+ 2
- 1
XMLSchema.py View File

@@ -599,7 +599,8 @@ class XMLSchemaComponent(XMLBase, MarkerInterface):
elif parent.imports.has_key(namespace):
schema = parent.imports[namespace].getSchema()
if schema is None:
raise SchemaError, 'no schema instance for imported namespace (%s).'
raise SchemaError, 'no schema instance for imported namespace (%s).'\
%(namespace)
try:
obj = getattr(schema, collection)[name]
except KeyError, ex:


Loading…
Cancel
Save