[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[gnue] r8099 - trunk/gnue-common/src/definitions
From: |
btami |
Subject: |
[gnue] r8099 - trunk/gnue-common/src/definitions |
Date: |
Thu, 17 Nov 2005 16:17:03 -0600 (CST) |
Author: btami
Date: 2005-11-17 16:17:03 -0600 (Thu, 17 Nov 2005)
New Revision: 8099
Modified:
trunk/gnue-common/src/definitions/GObjects.py
trunk/gnue-common/src/definitions/GParser.py
Log:
fixed report handling
Modified: trunk/gnue-common/src/definitions/GObjects.py
===================================================================
--- trunk/gnue-common/src/definitions/GObjects.py 2005-11-16 13:20:18 UTC
(rev 8098)
+++ trunk/gnue-common/src/definitions/GObjects.py 2005-11-17 22:17:03 UTC
(rev 8099)
@@ -458,7 +458,10 @@
(not xmlns and lookupDict [xmlEntity].has_key ('Attributes') and \
lookupDict [xmlEntity]['Attributes'].has_key (attribute)):
- attrDef = lookupDict [xmlEntity]['Attributes'][attribute]
+ try:
+ attrDef = lookupDict [xmlEntity]['Attributes'][attribute]
+ except KeyError:
+ attrDef = {}
if val != None and \
(xmlns or (not 'Default' in attrDef or \
Modified: trunk/gnue-common/src/definitions/GParser.py
===================================================================
--- trunk/gnue-common/src/definitions/GParser.py 2005-11-16 13:20:18 UTC
(rev 8098)
+++ trunk/gnue-common/src/definitions/GParser.py 2005-11-17 22:17:03 UTC
(rev 8099)
@@ -448,7 +448,7 @@
#
assert gDebug (7, "<%s:%s>" % (ns,name))
- for qattr in saxattrs:
+ for qattr in saxattrs.keys():
attrns, attr = qattr
attrs [attr] = saxattrs [qattr]
loadedxmlattrs [attr] = saxattrs [qattr]
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [gnue] r8099 - trunk/gnue-common/src/definitions,
btami <=