Author: btami
Date: 2005-12-02 05:36:53 -0600 (Fri, 02 Dec 2005)
New Revision: 8111

Modified:
   trunk/gnue-common/src/logic/GTrigger.py
Log:
fixed StoreTriggersAsCDATA issue

Modified: trunk/gnue-common/src/logic/GTrigger.py
===================================================================
--- trunk/gnue-common/src/logic/GTrigger.py     2005-12-01 10:08:08 UTC (rev 
8110)
+++ trunk/gnue-common/src/logic/GTrigger.py     2005-12-02 11:36:53 UTC (rev 
8111)
@@ -196,7 +196,7 @@
     """
 
     try:
-      asCData = not gConfig ('StoreTriggersAsCDATA')
+      asCData = gConfig ('StoreTriggersAsCDATA') == 'True'
 
     except:
       asCData = False
@@ -245,13 +245,13 @@
         xmlString += ">\n"
 
       if treeDump:
-        if hasContent and not asCData:
+        if hasContent and asCData:
           xmlString += "<![CDATA["
         for child in self._children:
           xmlString += child.dumpXML (lookupDict, True , gap + "  ",
-              xmlnamespaces, textEncoding, stripPrefixes, escape)
+              xmlnamespaces, textEncoding, stripPrefixes, (not asCData) and 
escape)
 
-        if hasContent and not asCData:
+        if hasContent and asCData:
           xmlString += "]]>"
 
       if hasContent:



_______________________________________________
Commit-gnue mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/commit-gnue

Reply via email to