commit-gnue
[Top][All Lists]
Advanced

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

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


From: reinhard
Subject: [gnue] r8579 - trunk/gnue-common/src/definitions
Date: Mon, 21 Aug 2006 08:11:02 -0500 (CDT)

Author: reinhard
Date: 2006-08-21 08:11:01 -0500 (Mon, 21 Aug 2006)
New Revision: 8579

Modified:
   trunk/gnue-common/src/definitions/GParser.py
Log:
Replaced error message about invalid attribute value by a deprecation warning
to stay compatible with older versions of gnue-common that didn't even check
this at all.


Modified: trunk/gnue-common/src/definitions/GParser.py
===================================================================
--- trunk/gnue-common/src/definitions/GParser.py        2006-08-21 11:48:34 UTC 
(rev 8578)
+++ trunk/gnue-common/src/definitions/GParser.py        2006-08-21 13:11:01 UTC 
(rev 8579)
@@ -539,8 +539,14 @@
     for (item, data) in baseAttrs.items ():
         if 'ValueSet' in data:
             if not getattr (object, item) in data ['ValueSet']:
-                raise InvalidValueSetError (item, object,
-                        data ['ValueSet'].keys ())
+                # FIXME: This should raise an exception. Only issue a warning
+                # for now to stay compatible with earlier versions that didn't
+                # check this at all.
+                assert gDebug(1,
+                        "DEPRECATION WARNING: %s not a valid value for %s" \
+                                % (getattr(object, item), item))
+                # raise InvalidValueSetError (item, object,
+                #         data ['ValueSet'].keys ())
 
     self.xmlStack.insert (0, object)
     self.nameStack.insert (0, tname)





reply via email to

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