[MOBY-guts] biomoby commit

Yan Wong yanwong at pub.open-bio.org
Fri Jun 10 07:47:15 UTC 2005


yanwong
Fri Jun 10 03:47:15 EDT 2005
Update of /home/repository/moby/moby-live/Python/bioMoby
In directory pub.open-bio.org:/tmp/cvs-serv477

Modified Files:
	mobyMarshal.py 
Log Message:
A generated object can now have a field content

moby-live/Python/bioMoby mobyMarshal.py,1.9,1.10
===================================================================
RCS file: /home/repository/moby/moby-live/Python/bioMoby/mobyMarshal.py,v
retrieving revision 1.9
retrieving revision 1.10
diff -u -r1.9 -r1.10
--- /home/repository/moby/moby-live/Python/bioMoby/mobyMarshal.py	2005/06/09 08:19:46	1.9
+++ /home/repository/moby/moby-live/Python/bioMoby/mobyMarshal.py	2005/06/10 07:47:15	1.10
@@ -3,7 +3,7 @@
 
 
 """ Creation date 19th of May 2004
-    Latest modification date: 9th of June 2005
+    Latest modification date: 10th of June 2005
 
     Author: Wong Yan
     Topic: Marshalling moby Objects
@@ -15,6 +15,7 @@
     06/09/2005: Change the doc.getElementsByTagNameNS("http://biomoby.org/moby",'mobyContent') to
                 doc.getElementsByTagNameNS(doc.firstChild.namespaceURI,'mobyContent') Parsing is now
                 independant from the namespace.
+    06/10/2005: A generated object can now have a field content!
 """
 
 from xml.dom.minidom import parseString
@@ -336,7 +337,7 @@
             content.append(str(elem.nodeValue))
             
         if content:
-            anObject.content(r"".join(content))
+            anObject.content=r"".join(content)
             
         return anObject
 




More information about the MOBY-guts mailing list