[MOBY-guts] biomoby commit
Yan Wong
yanwong at pub.open-bio.org
Fri May 20 07:35:23 UTC 2005
yanwong
Fri May 20 03:35:23 EDT 2005
Update of /home/repository/moby/moby-live/Python/bioMoby
In directory pub.open-bio.org:/tmp/cvs-serv6578
Modified Files:
mobyDataTypes.py
Log Message:
Changed the tag <moby:value> into <moby:Value>
moby-live/Python/bioMoby mobyDataTypes.py,1.22,1.23
===================================================================
RCS file: /home/repository/moby/moby-live/Python/bioMoby/mobyDataTypes.py,v
retrieving revision 1.22
retrieving revision 1.23
diff -u -r1.22 -r1.23
--- /home/repository/moby/moby-live/Python/bioMoby/mobyDataTypes.py 2005/05/18 08:26:32 1.22
+++ /home/repository/moby/moby-live/Python/bioMoby/mobyDataTypes.py 2005/05/20 07:35:23 1.23
@@ -31,7 +31,7 @@
def toMoby(self):
"""Returns the object as a XML
"""
- return "<moby:Parameter moby:articleName='"+self.articleName+"'><moby:value>"+str(self.value)+"</moby:value></moby:Parameter>"
+ return "<moby:Parameter moby:articleName='"+self.articleName+"'><moby:Value>"+str(self.value)+"</moby:Value></moby:Parameter>"
def __str__(self):
"""Return the Parameter in its XML form
@@ -52,9 +52,9 @@
xmlelt=parseString(xml).firstChild
self.articleName=xmlelt.getAttribute('moby:articleName')
- l=xmlelt.getElementsByTagName("value")
+ l=xmlelt.getElementsByTagName("Value")
if len(l)==0:
- l=xmlelt.getElementsByTagName("moby:value")
+ l=xmlelt.getElementsByTagName("moby:Value")
self.value=l[0].firstChild.nodeValue
More information about the MOBY-guts
mailing list