commit-gnue
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[gnue] r8930 - trunk/gnue-common/src/definitions


From: jcater
Subject: [gnue] r8930 - trunk/gnue-common/src/definitions
Date: Wed, 25 Oct 2006 21:59:06 -0500 (CDT)

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,





reply via email to

[Prev in Thread] Current Thread [Next in Thread]