Author: jcater
Date: 2006-10-25 21:59:06 -0500 (Wed, 25 Oct 2006)
New Revision: 8930
Modified:
trunk/gnue-common/src/definitions/GParser.py
Log:
only verify the root type if it is provided
Modified: trunk/gnue-common/src/definitions/GParser.py
===================================================================
--- trunk/gnue-common/src/definitions/GParser.py 2006-10-25 23:59:35 UTC
(rev 8929)
+++ trunk/gnue-common/src/definitions/GParser.py 2006-10-26 02:59:06 UTC
(rev 8930)
@@ -153,7 +153,7 @@
tmsg = u_("Error loading %s: empty definition file") % (xmlFileType)
raise MarkupError, (tmsg, url)
- elif object._type != rootType:
+ elif rootType and object._type != rootType:
tmsg = u_("Error loading %(filetype)s: not a valid %(filetype)s definition
"
"(expected: %(expected)s, got: %(got)s)") \
% {'filetype': xmlFileType,
_______________________________________________
commit-gnue mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/commit-gnue