[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[gnue] r7084 - in trunk/gnue-common/src: definitions logic
From: |
johannes |
Subject: |
[gnue] r7084 - in trunk/gnue-common/src: definitions logic |
Date: |
Thu, 3 Mar 2005 05:05:27 -0600 (CST) |
Author: johannes
Date: 2005-03-03 05:05:26 -0600 (Thu, 03 Mar 2005)
New Revision: 7084
Modified:
trunk/gnue-common/src/definitions/GBinary.py
trunk/gnue-common/src/definitions/GParserHelpers.py
trunk/gnue-common/src/definitions/GRootObj.py
trunk/gnue-common/src/logic/GFormula.py
trunk/gnue-common/src/logic/GTrigger.py
Log:
Made 'stripPrefixes' available to all dumpXML () functions
Modified: trunk/gnue-common/src/definitions/GBinary.py
===================================================================
--- trunk/gnue-common/src/definitions/GBinary.py 2005-03-03 03:31:35 UTC
(rev 7083)
+++ trunk/gnue-common/src/definitions/GBinary.py 2005-03-03 11:05:26 UTC
(rev 7084)
@@ -64,7 +64,8 @@
# Dumps an XML representation of the object
# used in saving
#
- def dumpXML(self, lookupDict, treeDump=None, gap=None,xmlnamespaces={}):
+ def dumpXML(self, lookupDict, treeDump=None, gap=None,xmlnamespaces={},
+ stripPrefixes = None):
xmlEntity = "binary"
xmlString = "%s<%s" % (gap[:-2],xmlEntity)
Modified: trunk/gnue-common/src/definitions/GParserHelpers.py
===================================================================
--- trunk/gnue-common/src/definitions/GParserHelpers.py 2005-03-03 03:31:35 UTC
(rev 7083)
+++ trunk/gnue-common/src/definitions/GParserHelpers.py 2005-03-03 11:05:26 UTC
(rev 7084)
@@ -68,7 +68,8 @@
return self._content
def dumpXML(self, lookupDict, treeDump=None, gap=None,
- escape=1, textEncoding='<locale>', xmlnamespaces={}):
+ escape=1, textEncoding='<locale>', xmlnamespaces={},
+ stripPrefixes = None):
if textEncoding=='<locale>':
textEncoding=gConfig('textEncoding')
Modified: trunk/gnue-common/src/definitions/GRootObj.py
===================================================================
--- trunk/gnue-common/src/definitions/GRootObj.py 2005-03-03 03:31:35 UTC
(rev 7083)
+++ trunk/gnue-common/src/definitions/GRootObj.py 2005-03-03 11:05:26 UTC
(rev 7084)
@@ -52,9 +52,10 @@
def initTriggerSystem(self):
self._triggerNamespaceTree = GObjNamespace(self,rootName=self._rname)
- def dumpXML(self, treeDump=1, gap=" "):
+ def dumpXML(self, treeDump=1, gap=" ", stripPrefixes=None):
return GObj.dumpXML(self, self.__xmlElementCallback(),
- treeDump, gap, xmlnamespaces=self._standardnamespaces)
+ treeDump, gap, xmlnamespaces=self._standardnamespaces,
+ stripPrefixes=stripPrefixes)
Modified: trunk/gnue-common/src/logic/GFormula.py
===================================================================
--- trunk/gnue-common/src/logic/GFormula.py 2005-03-03 03:31:35 UTC (rev
7083)
+++ trunk/gnue-common/src/logic/GFormula.py 2005-03-03 11:05:26 UTC (rev
7084)
@@ -213,7 +213,7 @@
# used in saving
#
def dumpXML(self, lookupDict, treeDump=None, gap=None,
- textEncoding='<locale>', xmlnamespaces={}):
+ textEncoding='<locale>', xmlnamespaces={}, stripPrefixes = None):
try:
escape = not int(gConfig('StoreTriggersAsCDATA'))
except:
@@ -265,7 +265,8 @@
if hasContent and not escape:
xmlString += "<![CDATA["
for child in self._children:
- xmlString += child.dumpXML(lookupDict, 1,gap+" ",escape=escape)
+ xmlString += child.dumpXML(lookupDict, 1,gap+" ",escape=escape,
+ stripPrefixes = stripPrefixes)
if hasContent and not escape:
xmlString += "]]>"
Modified: trunk/gnue-common/src/logic/GTrigger.py
===================================================================
--- trunk/gnue-common/src/logic/GTrigger.py 2005-03-03 03:31:35 UTC (rev
7083)
+++ trunk/gnue-common/src/logic/GTrigger.py 2005-03-03 11:05:26 UTC (rev
7084)
@@ -189,7 +189,7 @@
#
#
def dumpXML(self, lookupDict, treeDump=None, gap=None,
- textEncoding='<locale>',xmlnamespaces={}):
+ textEncoding='<locale>',xmlnamespaces={}, stripPrefixes = None):
"""
Dumps an XML representation of a trigger.
used in saving.
@@ -245,7 +245,8 @@
if hasContent and not escape:
xmlString += "<![CDATA["
for child in self._children:
- xmlString += child.dumpXML(lookupDict, 1,gap+" ",escape=escape)
+ xmlString += child.dumpXML(lookupDict, 1,gap+" ",escape=escape,
+ stripPrefixes = stripPrefixes)
if hasContent and not escape:
xmlString += "]]>"
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [gnue] r7084 - in trunk/gnue-common/src: definitions logic,
johannes <=