diff options
author | Peter A. Bigot <pabigot@users.sourceforge.net> | 2010-05-29 15:54:32 -0500 |
---|---|---|
committer | Peter A. Bigot <pabigot@users.sourceforge.net> | 2010-05-29 15:54:32 -0500 |
commit | db34f6487f8e29eb585aa7812066ad616a525535 (patch) | |
tree | b86f7708f51a770799057af13eebb61f6e8f8038 | |
parent | fa730ddf94a04d8c88327e28375ff36c57a8819f (diff) |
Use namespace of type definition to which value belongs
-rw-r--r-- | pyxb/binding/content.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/pyxb/binding/content.py b/pyxb/binding/content.py index d3b08ec..a041520 100644 --- a/pyxb/binding/content.py +++ b/pyxb/binding/content.py @@ -926,9 +926,9 @@ class Wildcard (ContentState_mixin): if elt is not None: ns = elt.name().namespace() else: - raise pyxb.LogicError('Need namespace') + ns = value._ExpandedName.namespace() else: - raise pyxb.LogicError('Need namespace') + raise pyxb.LogicError('Need namespace from value') if self.NC_any == self.__namespaceConstraint: return True if isinstance(self.__namespaceConstraint, tuple): |