[MOBY-guts] biomoby commit

Yan Wong yanwong at pub.open-bio.org
Mon Feb 7 14:23:13 UTC 2005


yanwong
Mon Feb  7 09:23:13 EST 2005
Update of /home/repository/moby/moby-live/Python/utils
In directory pub.open-bio.org:/tmp/cvs-serv18475

Modified Files:
	moby2python.py 
Log Message:


moby-live/Python/utils moby2python.py,1.5,1.6
===================================================================
RCS file: /home/repository/moby/moby-live/Python/utils/moby2python.py,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -r1.5 -r1.6
--- /home/repository/moby/moby-live/Python/utils/moby2python.py	2005/02/01 14:20:46	1.5
+++ /home/repository/moby/moby-live/Python/utils/moby2python.py	2005/02/07 14:23:13	1.6
@@ -85,7 +85,8 @@
     res.append("            if elt.nodeName==\"CrossReference\" or elt.nodeName==\"moby:CrossReference\":")
     res.append("                self.__cross__=[]")
     res.append("                for ref in elt.childNodes:")
-    res.append("                    self.__cross__.append(um.loads(ref))")        
+    res.append("                    if ref.nodeType==ref.ELEMENT_NODE:")    
+    res.append("                        self.__cross__.append(um.loadn(ref))")        
 
 
     for parameter in parameters:




More information about the MOBY-guts mailing list