[Modeling-cvs] ProjectModeling/Modeling PyModel.py,1.1.2.2,1.1.2.3
Status: Abandoned
Brought to you by:
sbigaret
|
From: <sbi...@us...> - 2003-05-18 16:02:23
|
Update of /cvsroot/modeling/ProjectModeling/Modeling
In directory sc8-pr-cvs1:/tmp/cvs-serv21896
Modified Files:
Tag: brch-0_9pre7-1-PyModel
PyModel.py
Log Message:
Added PyModel.Model.toXML()
Index: PyModel.py
===================================================================
RCS file: /cvsroot/modeling/ProjectModeling/Modeling/Attic/PyModel.py,v
retrieving revision 1.1.2.2
retrieving revision 1.1.2.3
diff -C2 -d -r1.1.2.2 -r1.1.2.3
*** PyModel.py 18 May 2003 15:23:25 -0000 1.1.2.2
--- PyModel.py 18 May 2003 16:02:20 -0000 1.1.2.3
***************
*** 226,229 ****
--- 226,239 ----
+ def toXML(self):
+ import cStringIO
+ _strIO=cStringIO.StringIO()
+ doc=self.component.getXMLDOM(encoding='iso-8859-1')
+ from xml.dom.ext import PrettyPrint
+ PrettyPrint(doc, stream=_strIO, encoding='iso-8859-1')
+ xml=_strIO.getvalue()
+ _strIO.close()
+ return xml
+
##
|