commit-gnue
[Top][All Lists]
Advanced

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

gnue/gnue-common/gnue/common GObjects.py


From: Jason Cater
Subject: gnue/gnue-common/gnue/common GObjects.py
Date: Wed, 06 Jun 2001 15:08:27 -0700

CVSROOT:        /home/cvs
Module name:    gnue
Changes by:     Jason Cater <address@hidden>    01/06/06 15:08:27

Modified files:
        gnue-common/gnue/common: GObjects.py 

Log message:
        Added support for '-' in tag element names.

CVSWeb URLs:
http://savannah.gnu.org/cgi-bin/viewcvs/gnue/gnue-common/gnue/common/GObjects.py.diff?cvsroot=OldCVS&tr1=1.7&tr2=1.8&r1=text&r2=text

Patches:
Index: gnue/gnue-common/gnue/common/GObjects.py
diff -u gnue/gnue-common/gnue/common/GObjects.py:1.7 
gnue/gnue-common/gnue/common/GObjects.py:1.8
--- gnue/gnue-common/gnue/common/GObjects.py:1.7        Wed Jun  6 12:01:15 2001
+++ gnue/gnue-common/gnue/common/GObjects.py    Wed Jun  6 15:08:27 2001
@@ -124,7 +124,7 @@
   # Dumps an XML representation of the object
   #
   def dumpXML(self, lookupDict, treeDump=None, gap="  "):
-    xmlEntity = string.lower(self._type[2:])
+    xmlEntity = string.lower(string.replace(self._type[2:],'_','-'))
     xmlString = "%s<%s" % (gap[:-2],xmlEntity)
 
     for attribute in self.__dict__.keys():



reply via email to

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